This is a pretty basic issue, but after Googling and trying various things I have had no success.
I suppose this is an integration test given that it'll also be testing my tiles configuration, though my initial intent was to find the simplest way to unit test the controller. I have actually written the simple controller I'm trying to test, and my tiles configuration works fine.
I have a Spring Boot app with three Java configuration classes (listed in the code below).As you can see from my failed attempt, I'm simply trying to test that a specific view name is returned, at this stage. What I haven't been able to do is configure the test so that it uses my existing ViewResolver. I've seen examples that create a new ViewResolver in the setup method, but... DRY.
The above code results in the following Exception:
java.lang.NullPointerException at org.apache.tiles.request.ApplicationAccess.register(ApplicationAccess.java:50)