summaryrefslogtreecommitdiff
path: root/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java')
-rw-r--r--jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java b/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
index 5afd769390fd..7ea366d6382d 100644
--- a/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
+++ b/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
@@ -27,17 +27,14 @@
package com.sun.star.lib.util;
-import complexlib.ComplexTestCase;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
+import org.junit.Test;
+import static org.junit.Assert.*;
-public final class NativeLibraryLoader_Test extends ComplexTestCase {
- public String[] getTestMethodNames() {
- return new String[] { "testEncoded", "testUnencoded" };
- }
-
- public void testEncoded() throws MalformedURLException {
+public final class NativeLibraryLoader_Test {
+ @Test public void testEncoded() throws MalformedURLException {
File dir = new File(System.getProperty("user.dir"));
File subdir = new File(dir, "with space");
File file1 = new File(subdir, "file");
@@ -56,10 +53,10 @@ public final class NativeLibraryLoader_Test extends ComplexTestCase {
}
},
"dummy");
- assure("Files are equal", file2.equals(file1));
+ assertEquals("Files are equal", file1, file2);
}
- public void testUnencoded() throws MalformedURLException {
+ @Test public void testUnencoded() throws MalformedURLException {
File dir = new File(System.getProperty("user.dir"));
File subdir = new File(dir, "with space");
File file1 = new File(subdir, "file");
@@ -78,6 +75,6 @@ public final class NativeLibraryLoader_Test extends ComplexTestCase {
}
},
"dummy");
- assure("Files are equal", file2.equals(file1));
+ assertEquals("Files are equal", file1, file2);
}
}