News for hackers. Stuff that matters.
Re:Java 8 vs. Java 9 by vonmoltke on Friday June 09, 2017 @08:57AM (#14521013)
Why not embed the JSON as a file in the test resources and read it in during the test setup? Is there a particular reason it needs to be embedded in the source code of the test?
Re:Java 8 vs. Java 9 by jitix on Saturday June 10, 2017 @12:25PM (#14527894)
Its to maintain context. If a developer is looking at a large test code then it becomes difficult to switch back and forth between 10s of JSON files and the main test code. Having the input, output and the test data in the same file is much more convenient.