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 JsonReader
expectProperty
(JsonReader reader, String propertyName) private static byte[]
getType()
private static int
hexValue
(char hexChar) protected static byte[]
readBinaryProperty
(JsonReader reader, String propertyName) protected static boolean
readBoolean
(JsonReader reader, String propertyName) protected static long
readLongProperty
(JsonReader reader, String propertyName) protected static String
readStringOrNullProperty
(JsonReader reader, String propertyName) protected static String
readStringProperty
(JsonReader reader, String propertyName) private static String
toAscii
(byte[] src) protected static JsonWriter
writeBinaryProperty
(JsonWriter writer, String propertyName, byte[] value) static void
writeDescription
(JsonWriter writer, org.junit.runner.Description e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.carrotsearch.ant.tasks.junit4.events.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
-