summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-09 14:59:10 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-10 08:04:10 +0000
commit3e7f9e3a8fbb1a556c76d8be181de259793c4560 (patch)
tree818842c96d55ffedd29599f42e7a760d0144925d /unotools
parent7d812b09b5f5959d3a315c514ac59a536bc15e59 (diff)
java: the TempFileTest interface is unnecessary
Change-Id: Ic49f95117b54929f95984aff0f69e47b90daee7c Reviewed-on: https://gerrit.libreoffice.org/13404 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/JunitTest_unotools_complex.mk1
-rw-r--r--unotools/qa/complex/tempfile/TempFileTest.java22
-rw-r--r--unotools/qa/complex/tempfile/TempFileUnitTest.java7
-rw-r--r--unotools/qa/complex/tempfile/Test01.java2
-rw-r--r--unotools/qa/complex/tempfile/Test02.java2
5 files changed, 4 insertions, 30 deletions
diff --git a/unotools/JunitTest_unotools_complex.mk b/unotools/JunitTest_unotools_complex.mk
index cbba7254e859..b7a02f90544c 100644
--- a/unotools/JunitTest_unotools_complex.mk
+++ b/unotools/JunitTest_unotools_complex.mk
@@ -27,7 +27,6 @@ $(eval $(call gb_JunitTest_add_classes,unotools_complex,\
))
$(eval $(call gb_JunitTest_add_sourcefiles,unotools_complex,\
- unotools/qa/complex/tempfile/TempFileTest \
unotools/qa/complex/tempfile/TempFileUnitTest \
unotools/qa/complex/tempfile/Test01 \
unotools/qa/complex/tempfile/Test02 \
diff --git a/unotools/qa/complex/tempfile/TempFileTest.java b/unotools/qa/complex/tempfile/TempFileTest.java
deleted file mode 100644
index 5a66da74880b..000000000000
--- a/unotools/qa/complex/tempfile/TempFileTest.java
+++ /dev/null
@@ -1,22 +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 complex.tempfile;
-
-public interface TempFileTest {
- boolean test();
-}
diff --git a/unotools/qa/complex/tempfile/TempFileUnitTest.java b/unotools/qa/complex/tempfile/TempFileUnitTest.java
index 7c3034dcac81..94f897517c6c 100644
--- a/unotools/qa/complex/tempfile/TempFileUnitTest.java
+++ b/unotools/qa/complex/tempfile/TempFileUnitTest.java
@@ -29,9 +29,6 @@ import org.junit.Test;
import org.openoffice.test.OfficeConnection;
import static org.junit.Assert.*;
-/* Document.
- */
-
public class TempFileUnitTest /* extends ComplexTestCase */ {
private XMultiServiceFactory m_xMSF = null;
private XSimpleFileAccess m_xSFA = null;
@@ -61,12 +58,12 @@ public class TempFileUnitTest /* extends ComplexTestCase */ {
}
@Test public void ExecuteTest01() {
- TempFileTest aTest = new Test01( m_xMSF, m_xSFA );
+ Test01 aTest = new Test01( m_xMSF, m_xSFA );
assertTrue( "Test01 failed!", aTest.test() );
}
@Test public void ExecuteTest02() {
- TempFileTest aTest = new Test02( m_xMSF, m_xSFA );
+ Test02 aTest = new Test02( m_xMSF, m_xSFA );
assertTrue( "Test02 failed!", aTest.test() );
}
diff --git a/unotools/qa/complex/tempfile/Test01.java b/unotools/qa/complex/tempfile/Test01.java
index ae4d80de4d10..b64c3e22039f 100644
--- a/unotools/qa/complex/tempfile/Test01.java
+++ b/unotools/qa/complex/tempfile/Test01.java
@@ -25,7 +25,7 @@ import java.util.Random;
import share.LogWriter;
-public class Test01 implements TempFileTest {
+public class Test01 {
LogWriter m_aLogWriter;
XMultiServiceFactory m_xMSF = null;
XSimpleFileAccess m_xSFA = null;
diff --git a/unotools/qa/complex/tempfile/Test02.java b/unotools/qa/complex/tempfile/Test02.java
index b1c0f70b32b6..29855d428b05 100644
--- a/unotools/qa/complex/tempfile/Test02.java
+++ b/unotools/qa/complex/tempfile/Test02.java
@@ -25,7 +25,7 @@ import com.sun.star.io.*;
import com.sun.star.uno.UnoRuntime;
import java.util.Random;
-public class Test02 implements TempFileTest {
+public class Test02 {
XMultiServiceFactory m_xMSF;
XSimpleFileAccess m_xSFA;