File: junit4.diff

package info (click to toggle)
segment 1.3.5~svn57%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 548 kB
  • ctags: 782
  • sloc: java: 4,230; xml: 114; makefile: 22; sh: 5
file content (23 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Description: org.junit.internal.runners.TextListener is dropped in current
# JUnit version 
--- a/src/net/sourceforge/segment/ui/console/Segment.java
+++ b/src/net/sourceforge/segment/ui/console/Segment.java
@@ -38,8 +38,6 @@
 import org.apache.commons.cli.Options;
 import org.apache.commons.cli.ParseException;
 import org.apache.commons.cli.PosixParser;
-import org.junit.internal.runners.TextListener;
-import org.junit.runner.JUnitCore;
 
 
 /**
@@ -114,9 +112,6 @@
 	}
 	
 	private void test() {
-        JUnitCore core = new JUnitCore();
-        core.addListener(new TextListener());
-        core.run(SegmentTestSuite.class);
 	}
 	
 	private void segment(CommandLine commandLine) throws IOException {