Fixed max assignments filter on sw module type
This commit is contained in:
@@ -20,7 +20,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public interface FieldNameProvider {
|
public interface FieldNameProvider {
|
||||||
/**
|
/**
|
||||||
* Seperator for the sub attributes
|
* Separator for the sub attributes
|
||||||
*/
|
*/
|
||||||
public static final String SUB_ATTRIBUTE_SEPERATOR = ".";
|
public static final String SUB_ATTRIBUTE_SEPERATOR = ".";
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public enum SoftwareModuleTypeFields implements FieldNameProvider {
|
|||||||
/**
|
/**
|
||||||
* The max ds assignments field.
|
* The max ds assignments field.
|
||||||
*/
|
*/
|
||||||
MAX("maxAssignments");
|
MAXASSIGNMENTS("maxAssignments");
|
||||||
|
|
||||||
private final String fieldName;
|
private final String fieldName;
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class RSQLSoftwareModuleTypeFieldsTest extends AbstractIntegrationTest {
|
|||||||
@Test
|
@Test
|
||||||
@Description("Test filter software module test type by max")
|
@Description("Test filter software module test type by max")
|
||||||
public void testFilterByMaxAssignment() {
|
public void testFilterByMaxAssignment() {
|
||||||
assertRSQLQuery(SoftwareModuleTypeFields.MAX.name() + "==1", 3);
|
assertRSQLQuery(SoftwareModuleTypeFields.MAXASSIGNMENTS.name() + "==1", 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertRSQLQuery(final String rsqlParam, final long excpectedEntity) {
|
private void assertRSQLQuery(final String rsqlParam, final long excpectedEntity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user