Package com.javaeye.jert.domain

Examples of com.javaeye.jert.domain.ResultSetOutput


        ReportDefinition rd = getReportDefinition();

        ReportInstance instance = new ReportInstance(2);
        instance.setReportDefinition(rd);
        instance.generateItems(null);
        ResultSetOutput output = instance.getResultSetOutput();
        assertEquals(5, instance.getTotalCount());
        assertEquals(2, output.getColumns().size());
       
        assertEquals("USER_NAME", output.getHeaderNames()[0]);
        assertEquals("EMAIL", output.getHeaderNames()[1]);
       
        Object[] user1 = (Object[]) output.getColumns().get(0);
        assertEquals("user1", user1[0]);
        assertEquals("user1@javaeye.com", user1[1]);

        Object[] user2 = (Object[]) output.getColumns().get(1);
        assertEquals("user2", user2[0]);
        assertEquals("user2@javaeye.com", user2[1]);
       

    }
View Full Code Here


        ReportInstance instance = new ReportInstance(2);
        instance.setReportDefinition(rd);
        instance.setStartIndex(2);
        instance.generateItems(null);
       
        ResultSetOutput output = instance.getResultSetOutput();
        assertEquals(5, instance.getTotalCount());
        assertEquals(2, output.getColumns().size());
        Object[] user3 = (Object[]) output.getColumns().get(0);
        assertEquals("user3", user3[0]);
        assertEquals("user3@javaeye.com", user3[1]);
    }
View Full Code Here

        parameters[0].setValue("user1");
       
        instance.generateItems(parameters);
        assertEquals(1, instance.getTotalCount());
       
        ResultSetOutput output = instance.getResultSetOutput();
        Object[] user1 = (Object[]) output.getColumns().get(0);
        assertEquals("user1", user1[0]);
        assertEquals("user1@javaeye.com", user1[1]);       
    }
View Full Code Here

TOP

Related Classes of com.javaeye.jert.domain.ResultSetOutput

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.