Kaydet (Commit) 3e7f9e3a authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

java: the TempFileTest interface is unnecessary

Change-Id: Ic49f95117b54929f95984aff0f69e47b90daee7c
Reviewed-on: https://gerrit.libreoffice.org/13404Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 7d812b09
......@@ -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 \
......
/*
* 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();
}
......@@ -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() );
}
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment