Added Makefile for SDK Python example.
[LibreOffice.git] / embeddedobj / qa / embedding / EmbeddingUnitTest.java
blob5f1b3f81c84a81ec1ba573f1da8957a47f9fab6e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 package complex.embedding;
29 import com.sun.star.lang.XMultiServiceFactory;
30 import com.sun.star.lang.XMultiComponentFactory;
31 import com.sun.star.connection.XConnector;
32 import com.sun.star.connection.XConnection;
34 import com.sun.star.bridge.XUnoUrlResolver;
35 import com.sun.star.uno.UnoRuntime;
36 import com.sun.star.uno.XInterface;
37 import com.sun.star.uno.XNamingService;
38 import com.sun.star.uno.XComponentContext;
40 import com.sun.star.container.*;
41 import com.sun.star.beans.*;
42 import com.sun.star.lang.*;
44 import complexlib.ComplexTestCase;
46 import complex.embedding.*;
48 import util.utils;
49 import java.util.*;
50 import java.io.*;
52 /* This unit test for storage objects is designed to
53 * test most important statements from storage service
54 * specification.
56 * Regression tests are added to extend the tested
57 * functionalities.
59 public class EmbeddingUnitTest extends ComplexTestCase
61 private XMultiServiceFactory m_xMSF = null;
63 public String[] getTestMethodNames()
65 return new String[] {
66 "ExecuteTest01" };
69 public String getTestObjectName()
71 return "EmbeddingUnitTest";
74 public void before()
76 m_xMSF = (XMultiServiceFactory)param.getMSF();
77 if ( m_xMSF == null )
79 failed( "Can't create service factory!" );
80 return;
84 public void ExecuteTest01()
86 EmbeddingTest aTest = new Test01( m_xMSF, log );
87 assure( "Test01 failed!", aTest.test() );