@Test public void shouldExtractTimeIfCanExtract() { Assert.assertThat( extractor.extractDateTime(canExtractTime), is(LocalDateTime.of(2016, 1, 25, 12, 0))); }
@Test public void shouldReturnNullIfCannotExtractTime() { Assert.assertNull(extractor.extractDateTime(cannotExtractTime)); }
@Test public void shouldTestCanOrCannotExtractTime() throws Exception { Assert.assertTrue(extractor.canExtractTime(canExtractTime)); Assert.assertFalse(extractor.canExtractTime(cannotExtractTime)); }