@Test public void shouldReportEmptyStringAsInvalidCondition() { TinkerPopTextWrappingPredicate wrappingPredicate = createWrappingPredicate(); assertFalse(wrappingPredicate.isValidCondition("")); }
@Override public boolean isValidCondition(Object condition) { return condition instanceof String && StringUtils.isNoneBlank(condition.toString()); }
TinkerPopTextWrappingPredicate implements JanusGraphPredicate { @Override public boolean isValidCondition(Object condition) { return condition instanceof String && StringUtils.isNoneBlank(condition.toString()); } }
TinkerPopTextWrappingPredicate implements JanusGraphPredicate { @Override public boolean isValidCondition(Object condition) { return condition instanceof String && StringUtils.isNoneBlank(condition.toString()); } TinkerPopTextWrappingPredicate(Text wrappedPredicate); }
TinkerPopTextWrappingPredicate implements JanusGraphPredicate { @Override public boolean isValidCondition(Object condition) { return condition instanceof String && StringUtils.isNoneBlank(condition.toString()); } TinkerPopTextWrappingPredicate(Text wrappedPredicate); @Override boolean isValidCondition(Object condition); @Override boolean isValidValueType(Class<?> clazz); @Override boolean hasNegation(); @Override JanusGraphPredicate negate(); @Override boolean isQNF(); @Override boolean test(Object value, Object condition); }
TinkerPopTextWrappingPredicate implements JanusGraphPredicate { @Override public boolean isValidCondition(Object condition) { return condition instanceof String && StringUtils.isNoneBlank(condition.toString()); } TinkerPopTextWrappingPredicate(Text wrappedPredicate); @Override boolean isValidCondition(Object condition); @Override boolean isValidValueType(Class<?> clazz); @Override boolean hasNegation(); @Override JanusGraphPredicate negate(); @Override boolean isQNF(); @Override boolean test(Object value, Object condition);  }