1f7cf3d52SAndrew Rist /************************************************************** 2f7cf3d52SAndrew Rist * 3f7cf3d52SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4f7cf3d52SAndrew Rist * or more contributor license agreements. See the NOTICE file 5f7cf3d52SAndrew Rist * distributed with this work for additional information 6f7cf3d52SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7f7cf3d52SAndrew Rist * to you under the Apache License, Version 2.0 (the 8f7cf3d52SAndrew Rist * "License"); you may not use this file except in compliance 9f7cf3d52SAndrew Rist * with the License. You may obtain a copy of the License at 10f7cf3d52SAndrew Rist * 11f7cf3d52SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12f7cf3d52SAndrew Rist * 13f7cf3d52SAndrew Rist * Unless required by applicable law or agreed to in writing, 14f7cf3d52SAndrew Rist * software distributed under the License is distributed on an 15f7cf3d52SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16f7cf3d52SAndrew Rist * KIND, either express or implied. See the License for the 17f7cf3d52SAndrew Rist * specific language governing permissions and limitations 18f7cf3d52SAndrew Rist * under the License. 19f7cf3d52SAndrew Rist * 20f7cf3d52SAndrew Rist *************************************************************/ 21f7cf3d52SAndrew Rist 22f7cf3d52SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir package org.openoffice.dbaccess.qa.unoapi; 25cdf0e10cSrcweir 26cdf0e10cSrcweir import org.openoffice.Runner; 27cdf0e10cSrcweir import org.openoffice.test.OfficeConnection; 28*b63233d8Sdamjan import org.openoffice.test.Argument; 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*b63233d8Sdamjan "-sce", Argument.get("sce"), 46*b63233d8Sdamjan "-xcl", Argument.get("xcl"), 47*b63233d8Sdamjan "-ini", Argument.get("ini"), 48*b63233d8Sdamjan "-tdoc", Argument.get("tdoc"), 49*b63233d8Sdamjan "-cs", connection.getDescription())); 50cdf0e10cSrcweir } 51cdf0e10cSrcweir 52cdf0e10cSrcweir private final OfficeConnection connection = new OfficeConnection(); 53cdf0e10cSrcweir } 54