Exemple #1
0
 @Test
 public void definirReleaseTestadaComDeployEmAmbienteDeTeste() {
   Release release = new Release();
   release.adicionarDeployTeste();
   release.setTestada(true);
   Assert.assertTrue(release.isTestada());
 }
Exemple #2
0
  @Test
  public void verificarSituacaoReleaseTestada() {
    Release release = new Release();
    release.adicionarDeployTeste();
    release.adicionarDeployProducao();

    release.setTestada(true);

    Assert.assertEquals(SituacaoRelease.PRODUCAO_TESTADA, release.getSituacao());
  }
Exemple #3
0
 @Test(expected = GcmException.class)
 public void definirReleaseTestadaSemDeployEmAmbienteDeTeste() {
   Release release = new Release();
   release.setTestada(true);
 }