コード例 #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));
 }