src/test/java/com/stijndepestel/geminio/ReplayTest.java
/**
     * Helper function to provide fake JSON events for the unit test.
     *
     * @return The created JSONObject with the fake events.
     */
Helper function to provide fake JSON events for the unit test.
@return The created JSONObject with the fake events.
Helper function to provide fake JSON events for the unit test . @return The created JSONObject with the fake events .
private JSONObject provideJSON() {
        return new JSONObject(
                "{events : [" + "{relative_time:0,event:{random:0,time:0}},"
                        + "{relative_time:10,event:{random:1,time:1}},"
                        + "{relative_time:20,event:{random:2,time:2}},"
                        + "{relative_time:30,event:{random:3,time:3}},"
                        + "{relative_time:40,event:{random:4,time:4}}]}");
    }
private JSONObject provideJSON ( ) { return new JSONObject ( "{events : [" + "{relative_time:0,event:{random:0,time:0}}," + "{relative_time:10,event:{random:1,time:1}}," + "{relative_time:20,event:{random:2,time:2}}," + "{relative_time:30,event:{random:3,time:3}}," + "{relative_time:40,event:{random:4,time:4}}]}" ) ; }
Helper function to provide fake JSON events for the unit test.
Helper function to provide fake JSON events for the unit test .