@Test public void testContainsArgQueryableByComparisonOperation() throws Exception { simpleSocialNetwork.users.add(user1); simpleSocialNetwork.users.add(user2); user1.age = 1; user2.age = 2; Group group = new Group(); simpleSocialNetwork.groups.add(group); State initialState = createStateFromCurrentSimpleSocialNetwork(); MethodId method = new MethodId(User.class, "setAgeInTwoCollections", Collection.class, Integer.TYPE, Collection.class, Integer.TYPE); MethodCall fc = new MethodCall(method, initialState.getEntityId(user1), new NonPrimitiveArgument(initialState.getEntityId(user1)), new PrimitiveArgument(3), new NonPrimitiveArgument(initialState.getEntityId(user2)), new PrimitiveArgument(3)); assertFalse(generateHit(initialState, fc).containsArgQueryableByComparisonOperation()); fc = new MethodCall(method, initialState.getEntityId(user1), new NonPrimitiveArgument(), new PrimitiveArgument(3), new NonPrimitiveArgument(initialState.getEntityId(user1), initialState.getEntityId(user2)), new PrimitiveArgument(3)); assertFalse(generateHit(initialState,fc).containsArgQueryableByComparisonOperation()); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,1,2,true); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,1,0,true); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,2,3,true); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,2,0,true); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,2,1,false); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,2,2,false); assertContainsArgQueryableByComparisonOperationReturnsExpectedResult(1,3,2,false); }
public boolean containsArgQueryableByComparisonOperation() { return containsArgQueryableByComparisonOperation(2, false); }
Hit implements Serializable { public boolean containsArgQueryableByComparisonOperation() { return containsArgQueryableByComparisonOperation(2, false); } }
Hit implements Serializable { public boolean containsArgQueryableByComparisonOperation() { return containsArgQueryableByComparisonOperation(2, false); } Hit(String id, Domain domain, State initialState, State destinationState, MethodCall methodCall,
               StateVisualizer initialStateVisualizer, StateVisualizer desiredStateVisualizer, ZonedDateTime creationTime);  Hit(Domain domain, State initialState, State destinationState, MethodCall methodCall,
               StateVisualizer initialStateVisualizer, StateVisualizer desiredStateVisualizer, String idPrefix,
               ZonedDateTime creationTime); }
Hit implements Serializable { public boolean containsArgQueryableByComparisonOperation() { return containsArgQueryableByComparisonOperation(2, false); } Hit(String id, Domain domain, State initialState, State destinationState, MethodCall methodCall,
               StateVisualizer initialStateVisualizer, StateVisualizer desiredStateVisualizer, ZonedDateTime creationTime);  Hit(Domain domain, State initialState, State destinationState, MethodCall methodCall,
               StateVisualizer initialStateVisualizer, StateVisualizer desiredStateVisualizer, String idPrefix,
               ZonedDateTime creationTime); State getDestinationState(); @Override boolean equals(Object obj); @Override int hashCode(); String getId(); State getInitialState(); HitConstructionInfo getHitConstructionInfo(); MethodCall getMethodCall(); Domain getDomain(); PngFileInMemo createInitialAndDesiredStatesFigure(HitConstructionSettings hitConstructionSettings); boolean isQueryableByPrimitiveRelations(); boolean containsArgQueryableByComparisonOperation(); boolean containsArgQueryableBySuperlativeOperation(); String extractBatchIdFromHitIdAssumingExpectedFormat(); @Override String toString(); }
Hit implements Serializable { public boolean containsArgQueryableByComparisonOperation() { return containsArgQueryableByComparisonOperation(2, false); } Hit(String id, Domain domain, State initialState, State destinationState, MethodCall methodCall,
               StateVisualizer initialStateVisualizer, StateVisualizer desiredStateVisualizer, ZonedDateTime creationTime);  Hit(Domain domain, State initialState, State destinationState, MethodCall methodCall,
               StateVisualizer initialStateVisualizer, StateVisualizer desiredStateVisualizer, String idPrefix,
               ZonedDateTime creationTime); State getDestinationState(); @Override boolean equals(Object obj); @Override int hashCode(); String getId(); State getInitialState(); HitConstructionInfo getHitConstructionInfo(); MethodCall getMethodCall(); Domain getDomain(); PngFileInMemo createInitialAndDesiredStatesFigure(HitConstructionSettings hitConstructionSettings); boolean isQueryableByPrimitiveRelations(); boolean containsArgQueryableByComparisonOperation(); boolean containsArgQueryableBySuperlativeOperation(); String extractBatchIdFromHitIdAssumingExpectedFormat(); @Override String toString();  }