@Test public void definirReleaseTestadaComDeployEmAmbienteDeTeste() { Release release = new Release(); release.adicionarDeployTeste(); release.setTestada(true); Assert.assertTrue(release.isTestada()); }
@Test public void verificarSituacaoReleaseTestada() { Release release = new Release(); release.adicionarDeployTeste(); release.adicionarDeployProducao(); release.setTestada(true); Assert.assertEquals(SituacaoRelease.PRODUCAO_TESTADA, release.getSituacao()); }
@Test(expected = GcmException.class) public void definirReleaseTestadaSemDeployEmAmbienteDeTeste() { Release release = new Release(); release.setTestada(true); }