Search in sources :

Example 26 with RefactoringPageRow

use of org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow in project kie-wb-common by kiegroup.

the class RuleNameServiceImplTest method getResults.

private List<RefactoringPageRow> getResults() {
    final List<RefactoringPageRow> results = new ArrayList<>();
    results.add(new RefactoringRuleNamePageRow() {

        {
            setValue(new RuleName("rule1", "org.kie.test.package"));
        }
    });
    results.add(new RefactoringRuleNamePageRow() {

        {
            setValue(new RuleName("rule2", "org.kie.test.package"));
        }
    });
    return results;
}
Also used : ArrayList(java.util.ArrayList) RefactoringPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow) RefactoringRuleNamePageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringRuleNamePageRow)

Aggregations

RefactoringPageRow (org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow)26 ArrayList (java.util.ArrayList)11 Test (org.junit.Test)11 RefactoringPageRequest (org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRequest)11 Path (org.uberfire.backend.vfs.Path)10 PageResponse (org.uberfire.paging.PageResponse)9 HashSet (java.util.HashSet)8 ValueIndexTerm (org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueIndexTerm)8 Path (org.uberfire.java.nio.file.Path)5 Map (java.util.Map)4 WorkspaceProject (org.guvnor.common.services.project.model.WorkspaceProject)4 ProjectAssetsQuery (org.kie.workbench.common.screens.library.api.ProjectAssetsQuery)4 LibraryValueModuleRootPathIndexTerm (org.kie.workbench.common.screens.library.api.index.LibraryValueModuleRootPathIndexTerm)4 ValueResourceIndexTerm (org.kie.workbench.common.services.refactoring.model.index.terms.valueterms.ValueResourceIndexTerm)4 Set (java.util.Set)3 Branch (org.guvnor.structure.repositories.Branch)3 List (java.util.List)2 TreeMap (java.util.TreeMap)2 TreeSet (java.util.TreeSet)2 AssetInfo (org.kie.workbench.common.screens.library.api.AssetInfo)2