Exemple #1
0
 @Test
 public void testOkTestResultSkip() {
   assertNotNull(okTestResultSkip);
   assertTrue(okTestResultSkip.getTestNumber() > 0);
   okTestResultSkip.setStatus(StatusValues.OK);
   assertEquals(okTestResultSkip.getStatus(), StatusValues.OK);
   assertNotNull(okTestResultSkip.getDirective());
 }
Exemple #2
0
 @Before
 public void setUp() {
   okTestResult = new TestResult(StatusValues.OK, 1);
   okTestResult.setDescription("- First test");
   notOkTestResult = new TestResult();
   notOkTestResult.setStatus(StatusValues.NOT_OK);
   notOkTestResult.setTestNumber(2);
   okTestResultSkip = new TestResult(StatusValues.NOT_OK, 3);
   Directive skipDirective =
       new Directive(DirectiveValues.SKIP, "Skip it until next release of the produce.");
   okTestResultSkip.setDirective(skipDirective);
   final Comment comment = new Comment("This status is set to true in another method.");
   comment.setInline(Boolean.TRUE);
   okTestResultSkip.addComment(comment);
 }