You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also generation for examples.objects.AbstractAnonymousClass#getInstance from UTBot Java project could be used to demonstrate the problem. Here is one of generated test:
@Test@DisplayName("getInstance: x % 2 == 0 : False -> return new AbstractAnonymousClass() { @Override int constValue() { return 42 } @Override int add(int x) { return x + 15 } @Override public int methodWithOverride(int x, int y) { return x + 37 } }")
publicvoidtestGetInstance_XRemainderOf2NotEqualsZero() throwsException {
AbstractAnonymousClassactual = AbstractAnonymousClass.getInstance(-255);
AbstractAnonymousClassexpected = ((AbstractAnonymousClass) createInstance("examples.objects.AbstractAnonymousClass$1"));
}
Activity
alisevych commentedon Oct 3, 2022
Currently UTBot compares only the state of the Objects.
That's a possible enhancement to compare the behavior of Objects.
tyuldashev commentedon Oct 4, 2023
Also generation for
examples.objects.AbstractAnonymousClass#getInstancefrom UTBot Java project could be used to demonstrate the problem. Here is one of generated test: