Permalink
Browse files

Made Selector and Event subclasses final. Dropped RunStatus, which wa…

…s not being used anymore.
  • Loading branch information...
1 parent 59ee518 commit 5a4f31db86160596caeec3d2305acfb0b9647d01 @bvenners committed Apr 24, 2012
@@ -9,7 +9,7 @@
* so many users may expect these meanings.
* </p>
*/
-public class ErrorEvent extends Event {
+public final class ErrorEvent extends Event {
private Throwable throwable;
@@ -9,7 +9,7 @@
* so many users may expect these meanings.
* </p>
*/
-public class FailureEvent extends Event {
+public final class FailureEvent extends Event {
private Throwable throwable;
@@ -4,7 +4,7 @@
* Information in addition to a test class name that identifies a nested suite about which an
* event was fired.
*/
-public class NestedSuiteSelector extends Selector {
+public final class NestedSuiteSelector extends Selector {
private String suiteId;
@@ -4,7 +4,7 @@
* Information in addition to a test class name that identifies a test in a nested suite about which an
* event was fired.
*/
-public class NestedTestSelector extends Selector {
+public final class NestedTestSelector extends Selector {
private String suiteId;
private String testName;
@@ -1,12 +0,0 @@
-package org.scalasbt.testing;
-
-/**
- * An enum for the different run completion statuses.
- *
- * <p>
- * A <code>RunStatus</code> is passed to the <code>summarize</code> method of <code>Runner</code>.
- * </p>
- */
-public enum RunStatus {
- Completed, Aborted, Stopped
-}
@@ -9,7 +9,7 @@
* not fail or succeed, because it was not given a chance to run.
* </p>
*/
-public class SkippedEvent extends Event {
+public final class SkippedEvent extends Event {
/**
* Constructs a new <code>SkippedEvent</code> with passed fully qualified name, isModule flag, and selector.
@@ -3,7 +3,7 @@
/**
* Indicates a test succeeded.
*/
-public class SuccessEvent extends Event {
+public final class SuccessEvent extends Event {
/**
* Constructs a new <code>SuccessEvent</code> with passed fully qualified name, isModule flag, and selector.
@@ -4,5 +4,5 @@
* Indicates an event was about the entire suite whose class had the fully qualified name specified as
* the <code>fullyQualifiedName</code> attribute the event.
*/
-public class SuiteSelector extends Selector {
+public final class SuiteSelector extends Selector {
}
@@ -5,7 +5,7 @@
* whose class had the fully qualified name specified as the <code>fullyQualifiedName</code> attribute
* passed to the event.
*/
-public class TestSelector extends Selector {
+public final class TestSelector extends Selector {
private String testName;

0 comments on commit 5a4f31d

Please sign in to comment.