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
abstract class AbstractEvent extends java.lang.Object implements RemoteEvent
An abstractIEvent
.
-
-
Constructor Summary
Constructors Constructor Description AbstractEvent(EventType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static JsonReader
expectProperty(JsonReader reader, java.lang.String propertyName)
private static byte[]
fromAscii(java.lang.String ascii)
EventType
getType()
private static int
hexValue(char hexChar)
protected static byte[]
readBinaryProperty(JsonReader reader, java.lang.String propertyName)
protected static boolean
readBoolean(JsonReader reader, java.lang.String propertyName)
protected static long
readLongProperty(JsonReader reader, java.lang.String propertyName)
protected static java.lang.String
readStringOrNullProperty(JsonReader reader, java.lang.String propertyName)
protected static java.lang.String
readStringProperty(JsonReader reader, java.lang.String propertyName)
private static java.lang.String
toAscii(byte[] src)
protected static JsonWriter
writeBinaryProperty(JsonWriter writer, java.lang.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 Detail
-
HEX
private static final char[] HEX
-
type
private final transient EventType type
Type is recreated in constructors anyway.
-
-
Constructor Detail
-
AbstractEvent
public AbstractEvent(EventType type)
-
-
Method Detail
-
writeBinaryProperty
protected static JsonWriter writeBinaryProperty(JsonWriter writer, java.lang.String propertyName, byte[] value) throws java.io.IOException
- Throws:
java.io.IOException
-
readBinaryProperty
protected static byte[] readBinaryProperty(JsonReader reader, java.lang.String propertyName) throws java.io.IOException
- Throws:
java.io.IOException
-
readStringProperty
protected static java.lang.String readStringProperty(JsonReader reader, java.lang.String propertyName) throws java.io.IOException
- Throws:
java.io.IOException
-
readStringOrNullProperty
protected static java.lang.String readStringOrNullProperty(JsonReader reader, java.lang.String propertyName) throws java.io.IOException
- Throws:
java.io.IOException
-
readBoolean
protected static boolean readBoolean(JsonReader reader, java.lang.String propertyName) throws java.io.IOException
- Throws:
java.io.IOException
-
readLongProperty
protected static long readLongProperty(JsonReader reader, java.lang.String propertyName) throws java.io.IOException
- Throws:
java.io.IOException
-
expectProperty
protected static JsonReader expectProperty(JsonReader reader, java.lang.String propertyName) throws java.io.IOException
- Throws:
java.io.IOException
-
fromAscii
private static byte[] fromAscii(java.lang.String ascii) throws java.io.IOException
- Throws:
java.io.IOException
-
hexValue
private static int hexValue(char hexChar) throws java.io.IOException
- Throws:
java.io.IOException
-
toAscii
private static java.lang.String toAscii(byte[] src)
-
writeDescription
public static void writeDescription(JsonWriter writer, org.junit.runner.Description e) throws java.io.IOException
- Throws:
java.io.IOException
-
-