private boolean forbidUseOfSuperInFixtureMethod ( MethodCallExpression expr ) { Method currMethod = resources . getCurrentMethod ( ) ; Expression target = expr . getObjectExpression ( ) ; if ( currMethod instanceof FixtureMethod && target instanceof VariableExpression && ( ( VariableExpression ) target ) . isSuperExpression ( ) && currMethod . getName ( ) . equals ( expr . getMethodAsString ( ) ) ) { resources . getErrorReporter ( ) . error ( expr , "A base class fixture method should not be called explicitly " + "because it is always invoked automatically by the framework" ) ; return true ; } return false ; }
the base method and doesn t know that it will be run automatically )