99import java .util .regex .Matcher ;
1010import java .util .regex .Pattern ;
1111
12- import static org .junit .jupiter .api .Assertions .assertEquals ;
12+ import static org .junit .jupiter .api .Assertions .assertFalse ;
1313import static org .junit .jupiter .api .Assertions .assertTrue ;
1414
1515/**
1616 * System tests for Code Coverage Reporter
1717 *
1818 * @author pesse
1919 */
20- public class RunCommandCoverageReporterIT extends AbstractFileOutputTest {
20+ class RunCommandCoverageReporterIT extends AbstractFileOutputTest {
2121
2222 private static final Pattern REGEX_COVERAGE_TITLE = Pattern .compile ("<a href=\" [a-zA-Z0-9#]+\" class=\" src_link\" title=\" [a-zA-Z\\ ._]+\" >([a-zA-Z0-9\\ ._]+)<\\ /a>" );
2323
2424
2525 private String getTempCoverageFileName (int counter ) {
2626
27- return "tmpCoverage_" + String . valueOf ( System .currentTimeMillis ()) + "_" + String . valueOf ( counter ) + ".html" ;
27+ return "tmpCoverage_" + System .currentTimeMillis () + "_" + counter + ".html" ;
2828 }
2929
3030 /**
@@ -68,7 +68,7 @@ private boolean hasCoverageListed(String content, String packageName) {
6868 }
6969
7070 @ Test
71- public void run_CodeCoverageWithIncludeAndExclude () throws Exception {
71+ void run_CodeCoverageWithIncludeAndExclude () throws Exception {
7272
7373 Path coveragePath = getTempCoverageFilePath ();
7474
@@ -78,14 +78,14 @@ public void run_CodeCoverageWithIncludeAndExclude() throws Exception {
7878
7979 String content = new String (Files .readAllBytes (coveragePath ));
8080
81- assertEquals ( true , hasCoverageListed (content , "app.remove_rooms_by_name" ));
82- assertEquals ( false , hasCoverageListed (content , "app.award_bonus" ));
83- assertEquals ( false , hasCoverageListed (content , "app.betwnstr" ));
81+ assertTrue ( hasCoverageListed (content , "app.remove_rooms_by_name" ));
82+ assertFalse ( hasCoverageListed (content , "app.award_bonus" ));
83+ assertFalse ( hasCoverageListed (content , "app.betwnstr" ));
8484
8585 }
8686
8787 @ Test
88- public void coverageReporterWriteAssetsToOutput () throws Exception {
88+ void coverageReporterWriteAssetsToOutput () throws Exception {
8989 Path coveragePath = getTempCoverageFilePath ();
9090 Path coverageAssetsPath = Paths .get (coveragePath .toString () + "_assets" );
9191
@@ -110,7 +110,7 @@ public void coverageReporterWriteAssetsToOutput() throws Exception {
110110 }
111111
112112 @ Test
113- public void coverageReporterWriteAssetsToSubfolder () throws Exception {
113+ void coverageReporterWriteAssetsToSubfolder () throws Exception {
114114
115115 Path origCoveratePath = getTempCoverageFilePath ();
116116 Path coveragePath = Paths .get (origCoveratePath .toString (), origCoveratePath .toString ());
0 commit comments