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