Assert.assertTrue(f.toString().contains("ok"));
}
@Test
public void testBuildFromScratchFeature() {
Feature empty = new Feature("abc");
empty.setUid("abc");
// Flipping strategy
empty.setFlippingStrategy(new PonderationStrategy());
Assert.assertNotNull(empty.getFlippingStrategy());
// Authorization filling
List<String> auths = Arrays.asList(new String[] {"something"});
empty.setPermissions(new HashSet<String>(auths));
Assert.assertNotNull(empty.getPermissions());
// Description setter
empty.setDescription("OK");
Assert.assertNotNull(empty.getDescription());
// Toggle to change value
empty.setEnable(true);
empty.toggle();
Assert.assertFalse(empty.isEnable());
// GROUP
empty.setGroup("sampleGroup");
Assert.assertFalse(empty.getGroup() == null);
// To String with a whole object
Assert.assertTrue(empty.toString().contains("OK"));
}