Package com.datasift.client.managedsource

Examples of com.datasift.client.managedsource.ManagedSourceLog


        assertTrue(delete.isSuccessful());
    }

    @Test
    public void testIfUserCanLogForManagedSource() {
        ManagedSourceLog logging_source = datasift.managedSource().log(id).sync();
        assertTrue(logging_source.isSuccessful());

        assertEquals(logging_source.getCount(), count);
        assertEquals(logging_source.getPage(), page);
        assertEquals(logging_source.getPages(), pages);
        assertEquals(logging_source.getPerPage(), per_page);
        for (ManagedSourceLog.LogMessage l : logging_source.getEntries()) {
            assertEquals(l.getMessage(), message);
            assertEquals(l.getEventTime(), event_time);
            assertEquals(l.isSuccessful(), success);
            assertEquals(l.getId(), id);
        }
View Full Code Here

TOP

Related Classes of com.datasift.client.managedsource.ManagedSourceLog

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.