Search in sources :

Example 6 with QuteJavaTypesParams

use of com.redhat.qute.commons.QuteJavaTypesParams in project quarkus-ls by redhat-developer.

the class TemplateGetJavaTypeTest method nested.

@Test
public void nested() throws Exception {
    loadMavenProject(QuteMavenProjectName.qute_quickstart);
    QuteJavaTypesParams params = new QuteJavaTypesParams("org.acme.qute.NestedClass.", QuteMavenProjectName.qute_quickstart);
    List<JavaTypeInfo> actual = QuteSupportForTemplate.getInstance().getJavaTypes(params, getJDTUtils(), new NullProgressMonitor());
    assertJavaTypes(// 
    actual, // 
    t("org.acme.qute.NestedClass.Foo", JavaTypeKind.Class), t("org.acme.qute.NestedClass.Bar", JavaTypeKind.Class));
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) QuteJavaTypesParams(com.redhat.qute.commons.QuteJavaTypesParams) JavaTypeInfo(com.redhat.qute.commons.JavaTypeInfo) Test(org.junit.Test)

Aggregations

QuteJavaTypesParams (com.redhat.qute.commons.QuteJavaTypesParams)6 JavaTypeInfo (com.redhat.qute.commons.JavaTypeInfo)5 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)4 Test (org.junit.Test)4 JavaParameterInfo (com.redhat.qute.commons.JavaParameterInfo)1 ArgumentUtils.getString (com.redhat.qute.jdt.internal.ls.ArgumentUtils.getString)1 CompletionItem (org.eclipse.lsp4j.CompletionItem)1 CompletionList (org.eclipse.lsp4j.CompletionList)1 Range (org.eclipse.lsp4j.Range)1 TextEdit (org.eclipse.lsp4j.TextEdit)1