return true;
}
public void visitMockUpCreation(final ClassInstanceCreation creation)
{
ASTNode gparent = creation.getParent();
Type typeNode = creation.getType();
boolean invokesGetInst = false;
if (gparent instanceof MethodInvocation) // method invocation follows
{
MethodInvocation inv = (MethodInvocation) gparent;
IMethodBinding meth = inv.resolveMethodBinding();
if ( MockUtil.GET_INST.equals(meth.getName()))
{
invokesGetInst = true;
if (gparent.getParent() instanceof ExpressionStatement)
{
addMarker(inv.getName(), "Returned mock instance is not being used.", false);
}
}
}