use of org.eclipse.che.ide.ext.java.shared.OpenDeclarationDescriptor in project che by eclipse.
the class FindDeclarationTest method testFindClassShouldReturnSourcePath.
@Test
public void testFindClassShouldReturnSourcePath() throws Exception {
OpenDeclarationDescriptor declaration = navigation.findDeclaration(project, "org.eclipse.che.test.TestClass", 60);
assertThat(declaration).isNotNull();
assertThat(declaration.isBinary()).isFalse();
assertThat(declaration.getPath()).isEqualTo("/test/src/main/java/org/eclipse/che/test/MyClass.java");
}
use of org.eclipse.che.ide.ext.java.shared.OpenDeclarationDescriptor in project che by eclipse.
the class FindDeclarationTest method testConstructorParam.
@Test
public void testConstructorParam() throws Exception {
OpenDeclarationDescriptor declaration = navigation.findDeclaration(project, "zzz.Z", 115);
assertThat(declaration).isNotNull();
assertThat(declaration.isBinary()).isFalse();
assertThat(declaration.getOffset()).isEqualTo(75);
}
Aggregations