コード例 #1
0
 /** Test of convert method, of class VoConverter. */
 @Test
 public void testConvert_WrongBuildDate_ExpectMissingDate() {
   source.setBuildDate(FOO);
   VersionInfo result = classUnderTest.convert(source);
   assertThat(result.getBuildDate(), nullValue());
 }
コード例 #2
0
 /** Test of convert method, of class VoConverter. */
 @Test
 public void testConvert_CorrectBuildDate_ExpectDate() {
   source.setBuildDate("2014-12-02T07:43:02.000+01:00");
   VersionInfo result = classUnderTest.convert(source);
   assertThat(result.getBuildDate(), notNullValue());
 }
コード例 #3
0
 /** Test of convert method, of class VoConverter. */
 @Test
 public void testConvert_BlankBuildDate_ExpectVersion() {
   VersionInfo result = classUnderTest.convert(source);
   assertThat(result.getVersion(), equalTo(FOO));
 }