Testing - initialize data folder in WrapperMock; create ReflectionUtils

- Change AuthMeMockUtils (reflection-based test setup) to ReflectionUtils: service providing reflection functionalities for particular tests where it is appropriate;

- Initialize the data folder (required as soon as the Settings class is loaded) immediately in WrapperMock. Some tests did not set it up that required it and it goes unnoticed if the test is not run individually. This will hopefully fix the tests from failing in the Jenkins build.
This commit is contained in:
ljacqu
2015-11-28 19:10:01 +01:00
parent b916a38d80
commit c02bf7db76
10 changed files with 49 additions and 125 deletions
@@ -30,7 +30,7 @@ public class MessagesTest {
*/
@Before
public void setUpMessages() {
WrapperMock.getInstance();
WrapperMock.createInstance();
Settings.messagesLanguage = "en";
URL url = getClass().getClassLoader().getResource(YML_TEST_FILE);