xref: /trunk/main/chart2/qa/unoapi/Test.java (revision 18dbfb8c)
1*18dbfb8cSAndrew Rist /**************************************************************
2*18dbfb8cSAndrew Rist  *
3*18dbfb8cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*18dbfb8cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*18dbfb8cSAndrew Rist  * distributed with this work for additional information
6*18dbfb8cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*18dbfb8cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*18dbfb8cSAndrew Rist  * "License"); you may not use this file except in compliance
9*18dbfb8cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*18dbfb8cSAndrew Rist  *
11*18dbfb8cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*18dbfb8cSAndrew Rist  *
13*18dbfb8cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*18dbfb8cSAndrew Rist  * software distributed under the License is distributed on an
15*18dbfb8cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*18dbfb8cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*18dbfb8cSAndrew Rist  * specific language governing permissions and limitations
18*18dbfb8cSAndrew Rist  * under the License.
19*18dbfb8cSAndrew Rist  *
20*18dbfb8cSAndrew Rist  *************************************************************/
21*18dbfb8cSAndrew Rist 
22*18dbfb8cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir package org.openoffice.chart2.qa.unoapi;
25cdf0e10cSrcweir 
26cdf0e10cSrcweir import org.openoffice.Runner;
27cdf0e10cSrcweir import org.openoffice.test.OfficeConnection;
28cdf0e10cSrcweir import static org.junit.Assert.*;
29cdf0e10cSrcweir 
30cdf0e10cSrcweir public final class Test {
setUp()31cdf0e10cSrcweir     @org.junit.Before public void setUp() throws Exception {
32cdf0e10cSrcweir         connection.setUp();
33cdf0e10cSrcweir     }
34cdf0e10cSrcweir 
tearDown()35cdf0e10cSrcweir     @org.junit.After public void tearDown()
36cdf0e10cSrcweir         throws InterruptedException, com.sun.star.uno.Exception
37cdf0e10cSrcweir     {
38cdf0e10cSrcweir         connection.tearDown();
39cdf0e10cSrcweir     }
40cdf0e10cSrcweir 
test()41cdf0e10cSrcweir     @org.junit.Test public void test() {
42cdf0e10cSrcweir         assertTrue(
43cdf0e10cSrcweir             Runner.run(
44cdf0e10cSrcweir                 "-sce", "sch.sce", "-xcl", "knownissues.xcl", "-tdoc",
45cdf0e10cSrcweir                 "testdocuments", "-cs", connection.getDescription()));
46cdf0e10cSrcweir     }
47cdf0e10cSrcweir 
48cdf0e10cSrcweir     private final OfficeConnection connection = new OfficeConnection();
49cdf0e10cSrcweir }
50