summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-01-04 15:30:53 +0000
committerOliver Bolte <obo@openoffice.org>2008-01-04 15:30:53 +0000
commit7e684e92e0d9cf964f9c424964c9ed14d94e15d5 (patch)
treecac6ff9f6e8e3a19c9451db6d11c3851d8cdc42d /sot
parent36456a39f1421238d7df4fb51bb21831041b8aa1 (diff)
INTEGRATION: CWS fwk77 (1.1.2); FILE ADDED
2007/10/18 12:04:27 mav 1.1.2.1: #i75848# OLESimpleStorage service tests
Diffstat (limited to 'sot')
-rw-r--r--sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java75
1 files changed, 75 insertions, 0 deletions
diff --git a/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java b/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java
new file mode 100644
index 000000000000..8415caa32de7
--- /dev/null
+++ b/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: OLESimpleStorageUnitTest.java,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: obo $ $Date: 2008-01-04 16:30:53 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+package complex.olesimplestorage;
+
+import complexlib.ComplexTestCase;
+import com.sun.star.lang.XMultiServiceFactory;
+import com.sun.star.uno.UnoRuntime;
+
+/* Document.
+ */
+
+public class OLESimpleStorageUnitTest extends ComplexTestCase {
+ private XMultiServiceFactory m_xMSF = null;
+
+ public String[] getTestMethodNames() {
+ return new String[] {
+ "ExecuteTest01"};
+ }
+
+ public String getTestObjectName() {
+ return "OLESimpleStorageUnitTest";
+ }
+
+ public void before () {
+ try {
+ m_xMSF = (XMultiServiceFactory)param.getMSF();
+ } catch ( Exception e ){
+ failed ( "Cannot create service factory!" );
+ }
+ if ( m_xMSF == null ) {
+ failed ( "Cannot create service factory!" );
+ }
+ }
+
+ public void after () {
+ m_xMSF = null;
+ }
+
+ public void ExecuteTest01() {
+ OLESimpleStorageTest aTest = new Test01( m_xMSF, log );
+ assure( "Test01 failed!", aTest.test() );
+ }
+} \ No newline at end of file