114115116117118119120121122123124
@Test public void testDisableFeature() { FF4j ff4j = new FF4j(); ff4j.autoCreate(true); ff4j.disable("newffff"); Assert.assertTrue(ff4j.exist("newffff")); Assert.assertFalse(ff4j.check("newffff")); } @Test(expected = FeatureNotFoundException.class)
122123124125126127128129130131132
} @Test(expected = FeatureNotFoundException.class) public void testDisableFeatureNotExist() { FF4j ff4j = new FF4j(); ff4j.disable("newffff"); } @Test public void testGetFeatures() { FF4j ff4j = new FF4j("ff4j.xml");