Пример #1
0
  @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());
  }
Пример #2
0
 @Test
 public void testGetRepository() throws Exception {
   assertThat(pieroneImage.getRepository()).isEqualTo(REPOSITORY);
 }
Пример #3
0
 @Test
 public void testGetTeam() throws Exception {
   assertThat(pieroneImage.getTeam()).isEqualTo(TEAM);
 }
Пример #4
0
 @Test
 public void testGetArtifact() throws Exception {
   assertThat(pieroneImage.getArtifact()).isEqualTo(ARTIFACT);
 }