Beispiel #1
0
  @Test
  public void testAddChild() {

    CTResult parent = new CTResult(null);
    CTResult child = new CTResult(null);

    parent.addChild(child);
    assertEquals(parent, child.getParent());
  }
Beispiel #2
0
  @Test
  public void testProps() {
    CTResult t = CTResultTestUtil.getMockResultObject();

    assertEquals(t.getCases(), 128);
    assertEquals(t.getUser(), "karl");
    assertEquals(t.getHost(), "devbox");
    assertEquals(t.getHosts(), "devbox ");
    assertEquals(t.getEmulator_vsn(), "5.9.3");
    assertEquals(t.getEmulator(), "beam");
    assertEquals(t.getOtp_release(), "R15B03");
    assertEquals(t.getStarted().toString(), "Mon Nov 19 16:37:20 CET 2012");
    assertEquals(t.getFinished().toString(), "Mon Nov 19 17:07:56 CET 2012");
    assertEquals(t.getFailed(), 0);
    assertEquals(t.getSuccessful(), 127);
    assertEquals(t.getUser_skipped(), 1);
    assertEquals(t.getAuto_skipped(), 0);
  }