1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 package complex.embedding; 28 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; 33 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; 39 40 import com.sun.star.container.*; 41 import com.sun.star.beans.*; 42 import com.sun.star.lang.*; 43 44 import complexlib.ComplexTestCase; 45 46 import complex.embedding.*; 47 48 import util.utils; 49 import java.util.*; 50 import java.io.*; 51 52 /* This unit test for storage objects is designed to 53 * test most important statements from storage service 54 * specification. 55 * 56 * Regression tests are added to extend the tested 57 * functionalities. 58 */ 59 public class EmbeddingUnitTest extends ComplexTestCase 60 { 61 private XMultiServiceFactory m_xMSF = null; 62 63 public String[] getTestMethodNames() 64 { 65 return new String[] { 66 "ExecuteTest01" }; 67 } 68 69 public String getTestObjectName() 70 { 71 return "EmbeddingUnitTest"; 72 } 73 74 public void before() 75 { 76 m_xMSF = (XMultiServiceFactory)param.getMSF(); 77 if ( m_xMSF == null ) 78 { 79 failed( "Can't create service factory!" ); 80 return; 81 } 82 } 83 84 public void ExecuteTest01() 85 { 86 EmbeddingTest aTest = new Test01( m_xMSF, log ); 87 assure( "Test01 failed!", aTest.test() ); 88 } 89 90 } 91 92