Ejemplo n.º 1
0
 @Test
 public void definirReleaseHomologadaComDeployEmAmbienteDeHomologacao() {
   Release release = new Release();
   release.adicionarDeployHomologacao();
   release.setHomologada(true);
   Assert.assertTrue(release.isHomologada());
 }
Ejemplo n.º 2
0
  @Test
  public void verificarSituacaoReleaseHomologada() {
    Release release = new Release();
    release.adicionarDeployHomologacao();
    ;
    release.adicionarDeployProducao();

    release.setHomologada(true);

    Assert.assertEquals(SituacaoRelease.PRODUCAO_HOMOLOGADA, release.getSituacao());
  }
Ejemplo n.º 3
0
 @Test(expected = GcmException.class)
 public void definirReleaseHomologadaSemDeployEmAmbienteDeHomologacao() {
   Release release = new Release();
   release.setHomologada(true);
 }