use of org.springframework.roo.addon.layers.repository.jpa.addon.finder.parser.FinderParameter in project spring-roo by spring-projects.
the class PartTreeUnitTest method assertEqualsParameters.
private void assertEqualsParameters(List<FinderParameter> parameters, List<FinderParameter> parameters2) {
List<String> list1 = new ArrayList<String>();
List<String> list2 = new ArrayList<String>();
for (FinderParameter parameter : parameters) list1.add(parameter.toString());
for (FinderParameter parameter : parameters2) list2.add(parameter.toString());
assertEqualsList(list1, list2);
}
use of org.springframework.roo.addon.layers.repository.jpa.addon.finder.parser.FinderParameter in project spring-roo by spring-projects.
the class PartTreeUnitTest method validateEmptyOperatorParameters.
@Test
public void validateEmptyOperatorParameters() throws Exception {
List<FinderParameter> parameters = new ArrayList<FinderParameter>();
parameters.add(new FinderParameter(JavaType.INT_OBJECT, new JavaSymbolName("number")));
assertEqualsParameters(parameters, new PartTree("findByNumber", memberDetails).getParameters());
parameters.add(new FinderParameter(JavaType.INT_OBJECT, new JavaSymbolName("number2")));
assertEqualsParameters(parameters, new PartTree("findByNumberAndNumberOrderByNumber", memberDetails).getParameters());
}
Aggregations