use of com.netflix.simianarmy.chaos.TestChaosMonkeyContext in project SimianArmy by Netflix.
the class TestTunablyAggressiveChaosMonkey method testFullProbability_basic.
@Test
public void testFullProbability_basic() {
TestChaosMonkeyContext ctx = new TestChaosMonkeyContext("fullProbability.properties");
TunablyAggressiveChaosMonkey chaos = new TunablyAggressiveChaosMonkey(ctx);
InstanceGroup basic = new BasicInstanceGroup("basic", GroupTypes.TYPE_A, "region", Collections.<TagDescription>emptyList());
double probability = chaos.getEffectiveProbability(basic);
Assert.assertEquals(probability, 1.0);
}
Aggregations