assertEquals("Missing access to " + methodDoSomething.getUniqueName() + " to " + staticAttributeG.getUniqueName(), 1, nrAccessesTo);
}
@Test
public void testInvoceEnumMethod() {
FamixMethod methodDoSomething = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.ae.UseEnumPlanet.doSomething(double)", null));
FamixMethod methodSurfaceGravity = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.ae.EnumPlanet.surfaceGravity()", null));
FamixMethod methodSurfaceWeight = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.ae.EnumPlanet.surfaceWeight(double)", null));
assertNotNull("FamixModel must contain method testPackage.ae.UseEnumPlanet.doSomething(double)", methodDoSomething);
assertNotNull("FamixModel must contain method testPackage.ae.EnumPlanet.surfaceGravity()", methodSurfaceGravity);
assertNotNull("FamixModel must contain method testPackage.ae.EnumPlanet.surfaceWeight(double)", methodSurfaceWeight);
Set<FamixAssociation> lRelations = aModel.getAssociations(methodDoSomething);
int nrInvocationsTo = TestHelper.containsRelationTo(methodSurfaceGravity, lRelations);
assertEquals("Missing invocation from " + methodDoSomething.getUniqueName() + " to " + methodSurfaceGravity.getUniqueName(), 1, nrInvocationsTo);
lRelations = aModel.getAssociations(methodDoSomething);
nrInvocationsTo = TestHelper.containsRelationTo(methodSurfaceWeight, lRelations);
assertEquals("Missing invocation from " + methodDoSomething.getUniqueName() + " to " + methodSurfaceWeight.getUniqueName(), 1, nrInvocationsTo);
}