I have an application that draws random characters from the alphabet and deals with them. I’m new to JUnit and try to use it. I want to test the application by providing predefined characters and testing if it deals with them right. How can I pass the characters to the tested project?
I tried setting System.property in the test case like: System.setProperty( "string_array", LETTERS );
And reading it in the tested project like: String z = System.getProperty("string_array");
But this doesn’t work.
Is there a solution, a workaround or am I totally on the wrong way?