Package com.datasift.client.preview

Examples of com.datasift.client.preview.HistoricsPreviewData


//        assertEquals(create.getCreatedAt().getMillis(), createdAt.getMillis());
    }

    @Test
    public void testIfUserCanGetHistoricsPreview() {
        HistoricsPreviewData get = datasift.preview().get(id).sync();
        assertTrue(get.isSuccessful());

        assertEquals(get.getId(), id);
        assertEquals(get.getName(), name);
        assertEquals(get.getProgress(), progress);
        assertEquals(get.getStatus(), status);
        assertEquals(get.getFeeds(), feeds);
        assertEquals(get.getSample(), sample);
        assertEquals(get.getStart(), start);
        assertEquals(get.getEnd(), end);
        assertEquals(get.getCreated_at(), createdAt.getMillis());
        assertEquals(get.getUser(), user);
        assertEquals(get.getParameters(), parameters);
        assertEquals(get.getHash(), hash);

        for (HistoricsPreviewData.DataEntry data : get.getData()) {
            assertEquals(data.getAnalysis(), analysis);
            assertEquals(data.getOutput(), output);
            assertEquals(data.getTarget(), target);
            assertEquals(data.getThreshold(), threshold);
        }
View Full Code Here

TOP

Related Classes of com.datasift.client.preview.HistoricsPreviewData

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.