summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-05 20:49:38 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-05 21:01:48 +0200
commitb1fd48de5fd7cd6385a63463d914d6d50e154bf9 (patch)
tree34de0faa4f72ac1c7127a60f7dfe6ba9aef08c72 /sfx2
parentcd0308ba9c284d6ed336955e758a689bd8028a96 (diff)
remove some obsolete boilerplate Test.java
Change-Id: I694cff583fddb713a59e5d6b8e15ea06a2be63b6
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/JunitTest_sfx2_unoapi.mk6
-rw-r--r--sfx2/qa/unoapi/Test.java45
2 files changed, 1 insertions, 50 deletions
diff --git a/sfx2/JunitTest_sfx2_unoapi.mk b/sfx2/JunitTest_sfx2_unoapi.mk
index eb0735f59ed0..14da689380e0 100644
--- a/sfx2/JunitTest_sfx2_unoapi.mk
+++ b/sfx2/JunitTest_sfx2_unoapi.mk
@@ -34,12 +34,8 @@ $(eval $(call gb_JunitTest_use_jars,sfx2_unoapi,\
jurt \
))
-$(eval $(call gb_JunitTest_add_sourcefiles,sfx2_unoapi,\
- sfx2/qa/unoapi/Test \
-))
-
$(eval $(call gb_JunitTest_add_classes,sfx2_unoapi,\
- unoapi.Test \
+ org.openoffice.test.UnoApiTest \
))
# vim: set noet sw=4 ts=4:
diff --git a/sfx2/qa/unoapi/Test.java b/sfx2/qa/unoapi/Test.java
deleted file mode 100644
index 4b20ae0750db..000000000000
--- a/sfx2/qa/unoapi/Test.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package unoapi;
-
-import org.openoffice.Runner;
-import org.openoffice.test.OfficeConnection;
-import org.openoffice.test.Argument;
-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", Argument.get("sce"), "-xcl", Argument.get("xcl"), "-tdoc",
- Argument.get("tdoc"), "-cs", connection.getDescription()));
- }
-
- private final OfficeConnection connection = new OfficeConnection();
-}