Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / embeddedobj / qa / embedding / EmbeddingUnitTest.java
blob245dd12253debced9c21211080c391d94b4e4ac8
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 package complex.embedding;
20 import com.sun.star.lang.XMultiServiceFactory;
21 import com.sun.star.lang.XMultiComponentFactory;
22 import com.sun.star.connection.XConnector;
23 import com.sun.star.connection.XConnection;
25 import com.sun.star.bridge.XUnoUrlResolver;
26 import com.sun.star.uno.UnoRuntime;
27 import com.sun.star.uno.XInterface;
28 import com.sun.star.uno.XNamingService;
29 import com.sun.star.uno.XComponentContext;
31 import com.sun.star.container.*;
32 import com.sun.star.beans.*;
33 import com.sun.star.lang.*;
35 import complexlib.ComplexTestCase;
37 import complex.embedding.*;
39 import util.utils;
40 import java.util.*;
41 import java.io.*;
43 /* This unit test for storage objects is designed to
44 * test most important statements from storage service
45 * specification.
47 * Regression tests are added to extend the tested
48 * functionalities.
50 public class EmbeddingUnitTest extends ComplexTestCase
52 private XMultiServiceFactory m_xMSF = null;
54 public String[] getTestMethodNames()
56 return new String[] {
57 "ExecuteTest01" };
60 public String getTestObjectName()
62 return "EmbeddingUnitTest";
65 public void before()
67 m_xMSF = (XMultiServiceFactory)param.getMSF();
68 if ( m_xMSF == null )
70 failed( "Can't create service factory!" );
71 return;
75 public void ExecuteTest01()
77 EmbeddingTest aTest = new Test01( m_xMSF, log );
78 assure( "Test01 failed!", aTest.test() );