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;
 }
예제 #2
0
 private void checkEquals(FeatureFilter a, FeatureFilter b) {
   assertTrue("equal: " + a + ", " + b, a.equals(b));
 }
예제 #3
0
 private void optimizeEquals(FeatureFilter raw, FeatureFilter target) {
   FeatureFilter result = FilterUtils.optimize(raw);
   assertTrue(
       "optimize: " + raw + " should be " + target + " but is " + result, result.equals(target));
 }