Class AbstractEvent
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.AbstractEvent
- All Implemented Interfaces:
IEvent, RemoteEvent
- Direct Known Subclasses:
AbstractEventWithDescription, AppendStdErrEvent, AppendStdOutEvent, BootstrapEvent, FailureEvent, IdleEvent, QuitEvent
An abstract
IEvent.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonReaderexpectProperty(JsonReader reader, String propertyName) private static byte[]getType()private static inthexValue(char hexChar) protected static byte[]readBinaryProperty(JsonReader reader, String propertyName) protected static booleanreadBoolean(JsonReader reader, String propertyName) protected static longreadLongProperty(JsonReader reader, String propertyName) protected static StringreadStringOrNullProperty(JsonReader reader, String propertyName) protected static StringreadStringProperty(JsonReader reader, String propertyName) private static StringtoAscii(byte[] src) protected static JsonWriterwriteBinaryProperty(JsonWriter writer, String propertyName, byte[] value) static voidwriteDescription(JsonWriter writer, org.junit.runner.Description e) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RemoteEvent
deserialize, serialize
-
Field Details
-
HEX
private static final char[] HEX -
type
Type is recreated in constructors anyway.
-
-
Constructor Details
-
AbstractEvent
-
-
Method Details
-
getType
-
writeBinaryProperty
protected static JsonWriter writeBinaryProperty(JsonWriter writer, String propertyName, byte[] value) throws IOException - Throws:
IOException
-
readBinaryProperty
protected static byte[] readBinaryProperty(JsonReader reader, String propertyName) throws IOException - Throws:
IOException
-
readStringProperty
protected static String readStringProperty(JsonReader reader, String propertyName) throws IOException - Throws:
IOException
-
readStringOrNullProperty
protected static String readStringOrNullProperty(JsonReader reader, String propertyName) throws IOException - Throws:
IOException
-
readBoolean
- Throws:
IOException
-
readLongProperty
- Throws:
IOException
-
expectProperty
protected static JsonReader expectProperty(JsonReader reader, String propertyName) throws IOException - Throws:
IOException
-
fromAscii
- Throws:
IOException
-
hexValue
- Throws:
IOException
-
toAscii
-
writeDescription
public static void writeDescription(JsonWriter writer, org.junit.runner.Description e) throws IOException - Throws:
IOException
-