I am preparing some JUnit tests in Oracle ADF and I am getting surprised because I am seeing that the constructor of the tested class is executed before the @Before setup() method.
The issue is the constructor needs initialized variables that I was setting in setup() but logically I always get a beautiful NullPointerException.
The only solution I can see is to initialize variables directly from the constructor, but I see that as being very ugly.
Any idea? Thanks in advance guys.