1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 package complex.embedding;
24 
25 import com.sun.star.lang.XMultiServiceFactory;
26 import com.sun.star.lang.XMultiComponentFactory;
27 import com.sun.star.connection.XConnector;
28 import com.sun.star.connection.XConnection;
29 
30 import com.sun.star.bridge.XUnoUrlResolver;
31 import com.sun.star.uno.UnoRuntime;
32 import com.sun.star.uno.XInterface;
33 import com.sun.star.uno.XNamingService;
34 import com.sun.star.uno.XComponentContext;
35 
36 import com.sun.star.container.*;
37 import com.sun.star.beans.*;
38 import com.sun.star.lang.*;
39 
40 import complexlib.ComplexTestCase;
41 
42 import complex.embedding.*;
43 
44 import util.utils;
45 import java.util.*;
46 import java.io.*;
47 
48 /* This unit test for storage objects is designed to
49  * test most important statements from storage service
50  * specification.
51  *
52  * Regression tests are added to extend the tested
53  * functionalities.
54  */
55 public class EmbeddingUnitTest  extends ComplexTestCase
56 {
57 	private XMultiServiceFactory m_xMSF = null;
58 
getTestMethodNames()59     public String[] getTestMethodNames()
60 	{
61         return new String[] {
62 								"ExecuteTest01" };
63     }
64 
getTestObjectName()65     public String getTestObjectName()
66 	{
67         return "EmbeddingUnitTest";
68     }
69 
before()70     public void before()
71 	{
72         m_xMSF = (XMultiServiceFactory)param.getMSF();
73 		if ( m_xMSF == null )
74 		{
75 			failed( "Can't create service factory!" );
76 			return;
77 		}
78     }
79 
ExecuteTest01()80 	public void ExecuteTest01()
81 	{
82 		EmbeddingTest aTest = new Test01( m_xMSF, log );
83 		assure( "Test01 failed!", aTest.test() );
84 	}
85 
86 }
87 
88