コード例 #1
0
  public void testShouldReturnAllDataIfLimitIsBiggerThanDataAmount() throws Exception {
    RobotGraph notlimitedResultsGraph =
        RobotGraphHelper.createTestResultsGraphForTestObject(
            mockResult2, false, false, false, false, false, 10);

    assertEquals(2, notlimitedResultsGraph.getDataset().getColumnCount());
  }
コード例 #2
0
  public void testShouldLimitGraphDataSet() throws Exception {
    RobotGraph limitedResultsGraph =
        RobotGraphHelper.createTestResultsGraphForTestObject(
            mockResult2, false, false, false, false, false, 1);

    assertEquals(1, limitedResultsGraph.getDataset().getColumnCount());
  }