src/test/java/com/stijndepestel/geminio/TestHelper.java
/**
     * Method to serialize test events.
     *
     * @param event
     *            The testevent to serialize.
     * @return The serialized event.
     */
Method to serialize test events.
@param event
The testevent to serialize.
@return The serialized event.
Method to serialize test events . @param event The testevent to serialize . @return The serialized event .
public static JSONObject serialize(final TestEvent event) {
        return new JSONObject()
                .put(TestHelper.JSON_NAME_TIME, event.getTimestamp())
                .put(TestHelper.JSON_NAME_RANDOM, event.getRandom());
    }
public static JSONObject serialize ( final TestEvent event ) { return new JSONObject ( ) . put ( TestHelper . JSON_NAME_TIME , event . getTimestamp ( ) ) . put ( TestHelper . JSON_NAME_RANDOM , event . getRandom ( ) ) ; }
Method to serialize test events.
Method to serialize test events .