public static int guess(MyAbstract obj, int v) { if (obj == null) { return(-1); } obj.setValue(v); if (obj.getValue() == 10) { return(1); } else { return(0); } }
//@SetteRequiredStatementCoverage(value = 71) public static int guessImpossible(MyAbstract obj, int v) { if (obj == null) { return(-1); } obj.setValue(v); if (obj.getValue() == v + 1) { // impossible, no such an implementation is present throw new Exception(); } else { return(1); } }
public Implementation(T a) { myConcrete = new ConcreteA <T>(4); }