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

    release.setTestada(true);

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