I have a
java class to which I need to pass 3 arguments: name, city and log file name. If the name of the log file is "debug", then the output prints to console, else the output redirects to a log file whose name is the third argument. I want to write a
unit test to test this functionality,
if args[2] == debug --> pass if the output is printing to console
else --> pass if a file is created with the argument name
Example.java
ExampleTest.java