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