I got an error saying: java.lang.AssertionError: Method expectedMinutesInOven must be created
while the mehtod actually exists, why? Here the part of the Lasagna class with the method implementation:
public class Lasagna extends ReflectionProxy {
@Override
public String getTargetClassName() {
return "Lasagna";
}
public int expectedMinutesInOven() {
try {
return 40;
//return invokeMethod("expectedMinutesInOven", new Class[]{});
} catch (Exception e) {
throw new UnsupportedOperationException("Please implement the expectedMinutesInOven() method");
}
}