1*c3ab0d6aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c3ab0d6aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c3ab0d6aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c3ab0d6aSAndrew Rist * distributed with this work for additional information 6*c3ab0d6aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c3ab0d6aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c3ab0d6aSAndrew Rist * "License"); you may not use this file except in compliance 9*c3ab0d6aSAndrew Rist * with the License. You may obtain a copy of the License at 10*c3ab0d6aSAndrew Rist * 11*c3ab0d6aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c3ab0d6aSAndrew Rist * 13*c3ab0d6aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c3ab0d6aSAndrew Rist * software distributed under the License is distributed on an 15*c3ab0d6aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c3ab0d6aSAndrew Rist * KIND, either express or implied. See the License for the 17*c3ab0d6aSAndrew Rist * specific language governing permissions and limitations 18*c3ab0d6aSAndrew Rist * under the License. 19*c3ab0d6aSAndrew Rist * 20*c3ab0d6aSAndrew Rist *************************************************************/ 21*c3ab0d6aSAndrew Rist 22*c3ab0d6aSAndrew Rist 23cdf0e10cSrcweir package complex.connectivity; 24cdf0e10cSrcweir 25cdf0e10cSrcweir import complex.connectivity.dbase.DBaseDateFunctions; 26cdf0e10cSrcweir import complex.connectivity.dbase.DBaseStringFunctions; 27cdf0e10cSrcweir import complex.connectivity.dbase.DBaseSqlTests; 28cdf0e10cSrcweir import complex.connectivity.dbase.DBaseNumericFunctions; 29cdf0e10cSrcweir import com.sun.star.lang.XMultiServiceFactory; 30cdf0e10cSrcweir import complexlib.ComplexTestCase; 31cdf0e10cSrcweir import share.LogWriter; 32cdf0e10cSrcweir 33cdf0e10cSrcweir public class DBaseDriverTest extends ComplexTestCase implements TestCase 34cdf0e10cSrcweir { 35cdf0e10cSrcweir public String[] getTestMethodNames() 36cdf0e10cSrcweir { 37cdf0e10cSrcweir return new String[] 38cdf0e10cSrcweir { 39cdf0e10cSrcweir "Functions" 40cdf0e10cSrcweir }; 41cdf0e10cSrcweir } 42cdf0e10cSrcweir 43cdf0e10cSrcweir @Override 44cdf0e10cSrcweir public String getTestObjectName() 45cdf0e10cSrcweir { 46cdf0e10cSrcweir return "DBaseDriverTest"; 47cdf0e10cSrcweir } 48cdf0e10cSrcweir 49cdf0e10cSrcweir @Override 50cdf0e10cSrcweir public void assure( final String i_message, final boolean i_condition ) 51cdf0e10cSrcweir { 52cdf0e10cSrcweir super.assure( i_message, i_condition ); 53cdf0e10cSrcweir } 54cdf0e10cSrcweir 55cdf0e10cSrcweir public LogWriter getLog() 56cdf0e10cSrcweir { 57cdf0e10cSrcweir return ComplexTestCase.log; 58cdf0e10cSrcweir } 59cdf0e10cSrcweir 60cdf0e10cSrcweir public void Functions() throws com.sun.star.uno.Exception, com.sun.star.beans.UnknownPropertyException 61cdf0e10cSrcweir { 62cdf0e10cSrcweir DBaseStringFunctions aStringTest = new DBaseStringFunctions(((XMultiServiceFactory) param.getMSF()), this); 63cdf0e10cSrcweir aStringTest.testFunctions(); 64cdf0e10cSrcweir 65cdf0e10cSrcweir DBaseNumericFunctions aNumericTest = new DBaseNumericFunctions(((XMultiServiceFactory) param.getMSF()), this); 66cdf0e10cSrcweir aNumericTest.testFunctions(); 67cdf0e10cSrcweir 68cdf0e10cSrcweir DBaseDateFunctions aDateTest = new DBaseDateFunctions(((XMultiServiceFactory) param.getMSF()), this); 69cdf0e10cSrcweir aDateTest.testFunctions(); 70cdf0e10cSrcweir 71cdf0e10cSrcweir DBaseSqlTests aSqlTest = new DBaseSqlTests(((XMultiServiceFactory) param.getMSF()), this); 72cdf0e10cSrcweir aSqlTest.testFunctions(); 73cdf0e10cSrcweir } 74cdf0e10cSrcweir } 75