use of org.eclipse.xtext.xbase.typesystem.override.OverrideTester in project xtext-xtend by eclipse.
the class SuperMemberImplementorTest method checkOverrideMethodCode.
protected void checkOverrideMethodCode(String operationName, String overrideCode) {
StringBuilderBasedAppendable appendable = new StringBuilderBasedAppendable();
LightweightTypeReference contextType = getContextType();
IResolvedOperation resolvedOperation = new BottomResolvedOperation((JvmOperation) findExecutable(implementedInterface, operationName), contextType, new OverrideTester());
implementor.appendOverrideFunction(xtendClass, resolvedOperation, appendable);
String code = appendable.toString();
if (!equalsIgnoreWhitespace(overrideCode, code))
assertEquals(overrideCode, code);
}
Aggregations