public CatalogItemMockFactory featureFilter(String featureId, String versionRange) { FeatureFilter featureFilter = new FeatureFilter(); featureFilter.setItem(getMockObject()); featureFilter.setFeatureId(featureId); featureFilter.setVersion(versionRange); getMockObject().getFeatureFilter().add(featureFilter); return this; }
private void checkEquals(FeatureFilter a, FeatureFilter b) { assertTrue("equal: " + a + ", " + b, a.equals(b)); }
private void optimizeEquals(FeatureFilter raw, FeatureFilter target) { FeatureFilter result = FilterUtils.optimize(raw); assertTrue( "optimize: " + raw + " should be " + target + " but is " + result, result.equals(target)); }