This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All public classes aren't final anymore. And all public methods of public classes are final now. This means that it's possible to extend classes, but it is not possible to change (override) the implemented behavior.
- Loading branch information
Showing
25 changed files
with
81 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @author Dmytro Serdiuk ([email protected]) | ||
* @version $Id$ | ||
*/ | ||
public final class CompositeStatus implements Status { | ||
public class CompositeStatus implements Status { | ||
|
||
private final List<Status> sources; | ||
|
||
|
@@ -30,7 +30,7 @@ public CompositeStatus(List<Status> statuses) { | |
* @return a calculated exit code | ||
*/ | ||
@Override | ||
public short code() { | ||
public final short code() { | ||
return this.sources.stream() | ||
.map(Status::code) | ||
.filter(code -> code != 0) | ||
|
@@ -44,7 +44,7 @@ public short code() { | |
* @return a count of total tests | ||
*/ | ||
@Override | ||
public int runCount() { | ||
public final int runCount() { | ||
return this.sources.stream().mapToInt(Status::runCount).sum(); | ||
} | ||
|
||
|
@@ -54,7 +54,7 @@ public int runCount() { | |
* @return a count of failed tests | ||
*/ | ||
@Override | ||
public int failureCount() { | ||
public final int failureCount() { | ||
return this.sources.stream().mapToInt(Status::failureCount).sum(); | ||
} | ||
|
||
|
@@ -64,7 +64,7 @@ public int failureCount() { | |
* @return a count of ignored tests | ||
*/ | ||
@Override | ||
public int ignoreCount() { | ||
public final int ignoreCount() { | ||
return this.sources.stream().mapToInt(Status::ignoreCount).sum(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @author Dmytro Serdiuk ([email protected]) | ||
* @version $Id$ | ||
*/ | ||
public final class SuiteFromClasses implements SunshineSuite { | ||
public class SuiteFromClasses implements SunshineSuite { | ||
private final Class[] classes; | ||
|
||
/** | ||
|
@@ -23,7 +23,7 @@ public SuiteFromClasses(Class... clazz) { | |
} | ||
|
||
@Override | ||
public List<SunshineTest> tests() throws SuiteException { | ||
public final List<SunshineTest> tests() throws SuiteException { | ||
return Arrays.stream(this.classes).map(TestFromClass::new).collect(Collectors.toList()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @author Dmytro Serdiuk ([email protected]) | ||
* @version $Id$ | ||
*/ | ||
public final class SuiteFromFileSystem implements SunshineSuite { | ||
public class SuiteFromFileSystem implements SunshineSuite { | ||
private final FileSystem fileSystem; | ||
|
||
/** | ||
|
@@ -24,7 +24,7 @@ public SuiteFromFileSystem(FileSystem fileSystem) { | |
} | ||
|
||
@Override | ||
public List<SunshineTest> tests() throws SuiteException { | ||
public final List<SunshineTest> tests() throws SuiteException { | ||
try { | ||
return fileSystem.files().stream() | ||
.map(f -> new TestFromFile(f.path().toString())) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.