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

    release.setHomologada(true);

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