Search in sources :

Example 6 with LibraryValueFileExtensionIndexTerm

use of org.kie.workbench.common.services.refactoring.backend.server.query.standard.LibraryValueFileExtensionIndexTerm in project kie-wb-common by kiegroup.

the class LibraryValueFileExtensionIndexTermTest method testSeveralExtensions.

@Test
public void testSeveralExtensions() {
    List<String> extensions = Arrays.asList("xml", "java", "drl");
    LibraryValueFileExtensionIndexTerm term = new LibraryValueFileExtensionIndexTerm(extensions);
    assertEquals(".*(xml|java|drl)", term.getValue());
}
Also used : LibraryValueFileExtensionIndexTerm(org.kie.workbench.common.services.refactoring.backend.server.query.standard.LibraryValueFileExtensionIndexTerm) Test(org.junit.Test)

Aggregations

LibraryValueFileExtensionIndexTerm (org.kie.workbench.common.services.refactoring.backend.server.query.standard.LibraryValueFileExtensionIndexTerm)6 Test (org.junit.Test)3 ValueIndexTerm (org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueIndexTerm)3 HashSet (java.util.HashSet)2 LibraryValueRepositoryRootIndexTerm (org.kie.workbench.common.services.refactoring.backend.server.query.standard.LibraryValueRepositoryRootIndexTerm)2 ArrayList (java.util.ArrayList)1 LibraryValueFileNameIndexTerm (org.kie.workbench.common.services.refactoring.backend.server.query.standard.LibraryValueFileNameIndexTerm)1 RefactoringPageRow (org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow)1 Path (org.uberfire.backend.vfs.Path)1