@Test public void testTryParse() throws Exception { Optional<PieroneImage> result = PieroneImage.tryParse(get(REPOSITORY, TEAM, ARTIFACT).toString() + ":" + TAG); assertThat(result).isPresent(); assertThat(result.get().getRepository()).isEqualTo(REPOSITORY); assertThat(result.get().getTeam()).isEqualTo(TEAM); assertThat(result.get().getArtifact()).isEqualTo(ARTIFACT); assertThat(result.get().getTag()).isEqualTo(TAG); assertThat(pieroneImage.toString()).isEqualTo(result.get().toString()); }
@Test public void testGetRepository() throws Exception { assertThat(pieroneImage.getRepository()).isEqualTo(REPOSITORY); }
@Test public void testGetTeam() throws Exception { assertThat(pieroneImage.getTeam()).isEqualTo(TEAM); }
@Test public void testGetArtifact() throws Exception { assertThat(pieroneImage.getArtifact()).isEqualTo(ARTIFACT); }