assertThat(graph.isModelActive(getModelADescription()), is(true));
}
@Test
public void testIfDeactivatedModelsAreNotUsed_shouldIgnoreInactiveModels() throws Exception {
TransformationDescription description = getDescriptionForModelAToModelB();
description.setId("test1");
graph.addTransformation(description);
description = getDescriptionForModelBToModelC();
description.setId("test2");
graph.addTransformation(description);
boolean possible1 = graph.isTransformationPossible(getModelADescription(), getModelCDescription(), null);
graph.removeModel(getModelBDescription());
boolean possible2 = graph.isTransformationPossible(getModelADescription(), getModelCDescription(), null);
description = getDescriptionForModelAToModelC();
description.setId("test3");
graph.addTransformation(description);
boolean possible3 = graph.isTransformationPossible(getModelADescription(), getModelCDescription(), null);
assertThat(possible1, is(true));
assertThat(possible2, is(false));
assertThat(possible3, is(true));