public void testSetters() {
Set<String> scopes = Sets.newHashSet();
Map<String, Collection<String>> properties = Maps.newHashMap();
Promotion promotion = new Promotion();
promotion.setStatus(Promotion.ROLLED_BACK);
promotion.setComment("comment");
promotion.setCiUser("ciUser");
promotion.setTimestamp("timestamp");
promotion.setDryRun(true);
promotion.setTargetRepo("targetRepo");
promotion.setCopy(false);
promotion.setArtifacts(true);
promotion.setDependencies(false);
promotion.setScopes(scopes);
promotion.setProperties(properties);
promotion.setFailFast(false);
assertEquals(promotion.getStatus(), Promotion.ROLLED_BACK, "Unexpected status.");
assertEquals(promotion.getComment(), "comment", "Unexpected comment.");
assertEquals(promotion.getCiUser(), "ciUser", "Unexpected ci user.");
assertEquals(promotion.getTimestamp(), "timestamp", "Unexpected timestamp.");
assertTrue(promotion.isDryRun(), "Unexpected dry run state.");
assertEquals(promotion.getTargetRepo(), "targetRepo", "Unexpected target repo.");
assertFalse(promotion.isCopy(), "Unexpected copy state.");
assertTrue(promotion.isArtifacts(), "Unexpected artifacts state.");
assertFalse(promotion.isDependencies(), "Unexpected dependencies state.");
assertEquals(promotion.getScopes(), scopes, "Unexpected scopes.");
assertEquals(promotion.getProperties(), properties, "Unexpected properties.");
assertFalse(promotion.isFailFast(), "Unexpected fail-fast state.");
}