Package com.datasift.client.historics

Examples of com.datasift.client.historics.HistoricsQuery


        assertTrue(delete.isSuccessful());
    }

    @Test
    public void testIfUserCanGetDetailsForPlaybackQuery() {
        HistoricsQuery get = datasift.historics().get(id).sync();
        assertTrue(get.isSuccessful());

        assertEquals(get.getId(), id);
        assertEquals(get.getDefinitationId(), definition_id);
        assertEquals(get.getName(), name);
        assertEquals(get.getStart(), start.getMillis());
        assertEquals(get.getEnd(), end.getMillis());
        assertEquals(get.getCreatedAt(), created_at);
        assertEquals(get.getStatus(), status_g);
        assertEquals(get.getProgress(), progress, 0.00000001);
        assertEquals(get.getFeed(), feed);
        assertEquals(get.getSources(), source_g);
        assertEquals(get.getSample(), sample, 0.00000001);
        for (HistoricsQuery.Chunk chunk : get.getChunks()) {
            assertEquals(chunk.getEstimatedCompletion(), estimatedCompletion);
            assertEquals(chunk.getEndTime(), end.getMillis());
            assertEquals(chunk.getStartTime(), start.getMillis());
            assertEquals(chunk.getProgress(), progress, 0.00000001);
            assertEquals(chunk.getStatus(), status_g);
View Full Code Here

TOP

Related Classes of com.datasift.client.historics.HistoricsQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.