Commit b4db9ea7 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Fixed a conceptional bug in the Oracle. Now isSimulation() can be used

to distinguish environments even if no Oracle-Implementation is
provided...
parent 4b04750f
......@@ -48,7 +48,17 @@ public final class Oracle {
try {
oracle = Binder.getComponent(OracleComponent.class);
} catch (ComponentNotAvailableException e) {
throw new AssertionError();
oracle = new OracleComponent() {
@Override
public boolean isSimulation() {
return false;
}
@Override
public List<Host> getAllHosts() {
return null;
}
};
}
}
return oracle;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment