@Test public void definirReleaseHomologadaComDeployEmAmbienteDeHomologacao() { Release release = new Release(); release.adicionarDeployHomologacao(); release.setHomologada(true); Assert.assertTrue(release.isHomologada()); }
@Test public void verificarSituacaoReleaseHomologada() { Release release = new Release(); release.adicionarDeployHomologacao(); ; release.adicionarDeployProducao(); release.setHomologada(true); Assert.assertEquals(SituacaoRelease.PRODUCAO_HOMOLOGADA, release.getSituacao()); }
@Test(expected = GcmException.class) public void definirReleaseHomologadaSemDeployEmAmbienteDeHomologacao() { Release release = new Release(); release.setHomologada(true); }