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