/** 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()); }
/** 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()); }
/** Test of convert method, of class VoConverter. */ @Test public void testConvert_BlankBuildDate_ExpectVersion() { VersionInfo result = classUnderTest.convert(source); assertThat(result.getVersion(), equalTo(FOO)); }