Error when accessing interceptor service in test.

Hello Guys,

I’m trying to get the interception service from within my unit tests, however, it’s throwing an exception:

public void function setUp() {

// We want to disabled the security interceptor so we can effectively run our integration tests.

getController().getInterceptorService();

// Call the super setup method to setup the app.

super.setup();

}

When I run these tests it throws an exception which says: No matching Method/Function for Number.GETINTERCEPTORSERVICE() found

Looking through the source code in the BaseTestCase it seems like I should be able to do this? Am I missing something?

Thanks,

Robert

Yes you have it backwards :slight_smile:
Do the super call first