diff options
author | sb <sb@openoffice.org> | 2010-02-16 11:53:58 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-02-16 11:53:58 +0100 |
commit | 7985a63fa7c807a5b54c4a1b34da10730ca788a8 (patch) | |
tree | c9c79eb3ce33b49a37872c89a7f4091cfbfc90e1 /dbaccess/qa/unoapi/Test.java | |
parent | ce8caafcc27cc80816c6a63bb375a510b2f25743 (diff) |
sb118: adapted remaining */qa/unoapi tests to new framework
Diffstat (limited to 'dbaccess/qa/unoapi/Test.java')
-rw-r--r-- | dbaccess/qa/unoapi/Test.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dbaccess/qa/unoapi/Test.java b/dbaccess/qa/unoapi/Test.java new file mode 100644 index 000000000000..4f2409fdc8bd --- /dev/null +++ b/dbaccess/qa/unoapi/Test.java @@ -0,0 +1,52 @@ +/************************************************************************* +* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +* +* Copyright 2000, 2010 Oracle and/or its affiliates. +* +* OpenOffice.org - a multi-platform office productivity suite +* +* This file is part of OpenOffice.org. +* +* OpenOffice.org is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License version 3 +* only, as published by the Free Software Foundation. +* +* OpenOffice.org is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License version 3 for more details +* (a copy is included in the LICENSE file that accompanied this code). +* +* You should have received a copy of the GNU Lesser General Public License +* version 3 along with OpenOffice.org. If not, see +* <http://www.openoffice.org/license.html> +* for a copy of the LGPLv3 License. +************************************************************************/ + +package org.openoffice.dbaccess.qa.unoapi; + +import org.openoffice.Runner; +import org.openoffice.test.OfficeConnection; +import static org.junit.Assert.*; + +public final class Test { + @org.junit.Before public void setUp() throws Exception { + connection.setUp(); + } + + @org.junit.After public void tearDown() + throws InterruptedException, com.sun.star.uno.Exception + { + connection.tearDown(); + } + + @org.junit.Test public void test() { + assertTrue( + Runner.run( + "-sce", "dbaccess.sce", "-xcl", "knownissues.xcl", "-ini", + "dbaccess.props", "-tdoc", "testdocuments", "-cs", + connection.getDescription())); + } + + private final OfficeConnection connection = new OfficeConnection(); +} |