Skip to content

Commit

Permalink
Reorganize test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
zxh0 committed Oct 14, 2019
1 parent 75bcc33 commit 131ce83
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 21 deletions.
Binary file added test/testclasses/RandomAccessFileWriteTest
Binary file not shown.
12 changes: 6 additions & 6 deletions test/testclasses/src/main/java/UnitTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public static void main(String[] args) {
stdlib.basic.thread.MainThreadTest.class,
stdlib.basic.thread.SleepTest.class,
stdlib.basic.wrapper.DoubleTest.class,
//stdlib.basic.java8.InterfaceDefaultMethodTest.class,
stdlib.basic.java8.InterfaceMethodTest.class,
stdlib.basic.jls8.ch12.Eg12_4_1_1.class,
stdlib.basic.jls8.ch12.Eg12_4_1_2.class,
stdlib.basic.jls8.ch12.Eg12_4_1_3.class,
stdlib.basic.jls8.ch12.Eg12_5_2.class,
//jvm.java8.InterfaceDefaultMethodTest.class,
jvm.java8.InterfaceMethodTest.class,
jvm.jls8.ch12.Eg12_4_1_1.class,
jvm.jls8.ch12.Eg12_4_1_2.class,
jvm.jls8.ch12.Eg12_4_1_3.class,
jvm.jls8.ch12.Eg12_5_2.class,
thirdparty.gson.GsonTest.class
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.java7.jsr292;
package jvm.java7.jsr292;

import helper.ReflectionHelper;
import helper.UnitTestRunner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.java7.jsr292;
package jvm.java7.jsr292;

import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.java7.jsr292;
package jvm.java7.jsr292;

import java.lang.invoke.MethodType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.java8;
package jvm.java8;

import junit.framework.Assert;
import helper.UnitTestRunner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.java8;
package jvm.java8;

import helper.UnitTestRunner;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.java8;
package jvm.java8;

public class LambdaTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.jls8;
package jvm.jls8;

import java.io.PrintWriter;
import java.io.StringWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package stdlib.basic.jls8.ch12;
package jvm.jls8.ch12;

import stdlib.basic.jls8.StringOut;
import jvm.jls8.StringOut;
import helper.UnitTestRunner;
import org.junit.Test;
import static org.junit.Assert.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stdlib.basic.jls8.ch12;
package jvm.jls8.ch12;

import helper.UnitTestRunner;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package stdlib.basic.jls8.ch12;
package jvm.jls8.ch12;

import stdlib.basic.jls8.StringOut;
import jvm.jls8.StringOut;
import helper.UnitTestRunner;
import org.junit.Test;
import static org.junit.Assert.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package stdlib.basic.jls8.ch12;
package jvm.jls8.ch12;

import stdlib.basic.jls8.StringOut;
import jvm.jls8.StringOut;
import helper.UnitTestRunner;
import static org.junit.Assert.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void findLoadedClass() throws Exception {
ClassLoader urlCl = new URLClassLoader(new URL[0]);
assertEquals(appCl, urlCl.getParent());
assertEquals(null, m.invoke(urlCl, "java.lang.Object"));
assertEquals(null, m.invoke(urlCl, "stdlib.basic.java7.cl.ClassLoaderTest"));
assertEquals(null, m.invoke(urlCl, "jvm.java7.cl.ClassLoaderTest"));
}

}

0 comments on commit 131ce83

Please sign in to comment.