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