@Test public void defaultStringEqualsDefaultTest() { final ReporterOutput reporterOutput = ReporterOutputFactory.getReporterOutput(""); assertThat(reporterOutput).isEqualTo(ReporterOutputFactory.DEFAULT_REPORTER_OUTPUT); }
static ReporterOutput getReporterOutput(String outputFormat) { if (outputFormat.equalsIgnoreCase("csv")) { return new ReporterOutputCSV(); } return DEFAULT_REPORTER_OUTPUT; }
ReporterOutputFactory { static ReporterOutput getReporterOutput(String outputFormat) { if (outputFormat.equalsIgnoreCase("csv")) { return new ReporterOutputCSV(); } return DEFAULT_REPORTER_OUTPUT; } }
ReporterOutputFactory { static ReporterOutput getReporterOutput(String outputFormat) { if (outputFormat.equalsIgnoreCase("csv")) { return new ReporterOutputCSV(); } return DEFAULT_REPORTER_OUTPUT; } private  ReporterOutputFactory(); }
ReporterOutputFactory { static ReporterOutput getReporterOutput(String outputFormat) { if (outputFormat.equalsIgnoreCase("csv")) { return new ReporterOutputCSV(); } return DEFAULT_REPORTER_OUTPUT; } private  ReporterOutputFactory();  }
ReporterOutputFactory { static ReporterOutput getReporterOutput(String outputFormat) { if (outputFormat.equalsIgnoreCase("csv")) { return new ReporterOutputCSV(); } return DEFAULT_REPORTER_OUTPUT; } private  ReporterOutputFactory();   }