use of org.apache.reef.evaluator.context.parameters.ContextIdentifier in project heron by twitter.
the class HeronMasterDriverTest method createContextConfigCreatesForGivenWorkerId.
@Test
public void createContextConfigCreatesForGivenWorkerId() {
Configuration config = driver.createContextConfig(4);
boolean found = false;
for (NamedParameterNode<?> namedParameterNode : config.getNamedParameters()) {
if (namedParameterNode.getName().equals(ContextIdentifier.class.getSimpleName())) {
Assert.assertEquals("4", config.getNamedParameter(namedParameterNode));
found = true;
}
}
assertTrue("ContextIdentifier didn't exist.", found);
}
Aggregations