@Test public void testParser() { Playbook p = TestLogReader.getPlaybook("/sample.log"); Assert.assertNotNull(p); Assert.assertEquals(1, p.getPlays().size()); Assert.assertEquals(4, p.getPlays().get(0).getTasks().size()); }
@Test public void testErrorParser() { Playbook p = TestLogReader.getPlaybook("/sample_error.log"); Assert.assertNotNull(p); Assert.assertNotNull(p.getErrorMessage()); Assert.assertTrue(p.getFinishedAt() > 0); }