You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cc3b355
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: testing-modules/runjunitfromjava/src/test/java/com/baeldung/junit4/runfromjava/RemovedNthElementUnitTest.java
Copy file name to clipboardExpand all lines: testing-modules/runjunitfromjava/src/test/java/com/baeldung/junit4/runfromjava/RunJUnit4Tests.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,14 @@ public class RunJUnit4Tests {
15
15
public static void runOne() {
16
16
JUnitCore junit = new JUnitCore();
17
17
junit.addListener(new TextListener(System.out));
18
-
junit.run(MergeListsUnitTest.class);
18
+
junit.run(FirstUnitTest.class);
19
19
}
20
20
21
21
public static void runAllClasses() {
22
22
JUnitCore junit = new JUnitCore();
23
23
junit.addListener(new TextListener(System.out));
24
24
25
-
Result result = junit.run(ListNodeUnitTest.class, MergeListsUnitTest.class, RemovedNthElementUnitTest.class, RotateListUnitTest.class, SwapNodesUnitTest.class);
25
+
Result result = junit.run(FirstUnitTest.class, SecondUnitTest.class);
26
26
27
27
for (Failure failure : result.getFailures()) {
28
28
System.out.println(failure.toString());
@@ -44,7 +44,7 @@ public static void runSuiteOfClasses() {
44
44
}
45
45
46
46
public static void runRepeated() {
47
-
Test test = new JUnit4TestAdapter(MergeListsUnitTest.class);
47
+
Test test = new JUnit4TestAdapter(SecondUnitTest.class);
48
48
RepeatedTest repeatedTest = new RepeatedTest(test, 5);
49
49
50
50
JUnitCore junit = new JUnitCore();
@@ -59,8 +59,8 @@ public static void runRepeatedSuite() {
0 commit comments