use of org.eclipse.xtend.core.xtend.XtendInterface in project xtext-xtend by eclipse.
the class OverrideValidationTest method testInterfaceCompatibleThrowsClause_07.
@Test
public void testInterfaceCompatibleThrowsClause_07() throws Exception {
XtendInterface xtendInterface = interfaze("interface Foo extends test.ExceptionThrowingInterface { override ioException() }");
helper.assertNoError(xtendInterface.getMembers().get(0), INCOMPATIBLE_THROWS_CLAUSE);
}
use of org.eclipse.xtend.core.xtend.XtendInterface in project xtext-xtend by eclipse.
the class OverrideValidationTest method testInterfaceMissingOverride_4.
@Test
public void testInterfaceMissingOverride_4() throws Exception {
XtendInterface xtendInterface = interfaze("interface Foo extends test.SomeInterface { def foo() }");
helper.assertError(xtendInterface.getMembers().get(0), XTEND_FUNCTION, MISSING_OVERRIDE);
}
use of org.eclipse.xtend.core.xtend.XtendInterface in project xtext-xtend by eclipse.
the class OverrideValidationTest method testOverrideGenericInterfaceMethod_7.
@Test
public void testOverrideGenericInterfaceMethod_7() throws Exception {
XtendInterface xtendInterface = interfaze(" import java.util.List interface Foo<T> extends test.GenericSuperTypeInterface<T> { " + "override <T3> getValue7(List<? super T3> t) " + "}");
helper.assertNoErrors(xtendInterface);
}
use of org.eclipse.xtend.core.xtend.XtendInterface in project xtext-xtend by eclipse.
the class OverrideValidationTest method testInterfaceMissingOverride_2.
@Test
public void testInterfaceMissingOverride_2() throws Exception {
XtendInterface xtendInterface = interfaze("interface Foo extends test.SuperInterface { def string(String s) }");
helper.assertError(xtendInterface.getMembers().get(0), XTEND_FUNCTION, MISSING_OVERRIDE);
}
use of org.eclipse.xtend.core.xtend.XtendInterface in project xtext-xtend by eclipse.
the class OverrideValidationTest method testInterfaceMissingOverride_0.
@Test
public void testInterfaceMissingOverride_0() throws Exception {
XtendInterface xtendInterface = interfaze("interface Foo extends test.SuperInterface { def string() }");
helper.assertError(xtendInterface.getMembers().get(0), XTEND_FUNCTION, MISSING_OVERRIDE);
}
Aggregations