use of org.iobserve.service.behavior.analysis.model.BehaviorModelGED in project iobserve-analysis by research-iobserve.
the class GraphEditDistanceTest method distanceToIdenticalModelIsZeroTest.
@Test
public void distanceToIdenticalModelIsZeroTest() {
BehaviorModelGED model1 = TestHelper.createBehaviorModelA();
BehaviorModelGED model2 = TestHelper.createBehaviorModelA();
MatcherAssert.assertThat(this.ged.calculate(model1, model2), Matchers.is(0.0));
model1 = TestHelper.createBehaviorModelB();
model2 = TestHelper.createBehaviorModelB();
MatcherAssert.assertThat(this.ged.calculate(model1, model2), Matchers.is(0.0));
model1 = TestHelper.createBehaviorModelC();
model2 = TestHelper.createBehaviorModelC();
MatcherAssert.assertThat(this.ged.calculate(model1, model2), Matchers.is(0.0));
model1 = TestHelper.createBehaviorModelD();
model2 = TestHelper.createBehaviorModelD();
MatcherAssert.assertThat(this.ged.calculate(model1, model2), Matchers.is(0.0));
model1 = TestHelper.createBehaviorModelE();
model2 = TestHelper.createBehaviorModelE();
MatcherAssert.assertThat(this.ged.calculate(model1, model2), Matchers.is(0.0));
}
use of org.iobserve.service.behavior.analysis.model.BehaviorModelGED in project iobserve-analysis by research-iobserve.
the class GraphEditDistanceTest method nodeRelevantTest.
@Test
public void nodeRelevantTest() {
final BehaviorModelGED model1 = TestHelper.createBehaviorModelA();
final BehaviorModelGED model2 = TestHelper.createBehaviorModelE();
Assert.assertTrue(this.ged.calculate(model1, model2) > 0);
}
Aggregations