AntennaComplianceToolOptions extends AbstractAntennaCLIOptions { @Override public String toString() { return "AntennaComplianceToolOptions{" + "propertiesFilePath='" + propertiesFilePath + '\'' + ", complianceMode=" + complianceMode + ", debugLog=" + debugLog + ", showHelp=" + showHelp + ", valid=" + valid + '}'; } AntennaComplianceToolOptions(String propertiesFilePath, String complianceMode, Set<String> parameters, boolean debugLog, boolean showHelp, boolean valid); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String SWITCH_REPORTER; }
@Test public void testToString() { AntennaComplianceToolOptions options = new AntennaComplianceToolOptions(PROPERTIES_PATH, "exporter", null, true, false, true); String s = options.toString(); assertThat(s).contains("propertiesFilePath='" + options.getPropertiesFilePath()); assertThat(s).contains("complianceMode=" + options.getComplianceMode()); assertThat(s).contains("debugLog=" + options.isDebugLog()); assertThat(s).contains("showHelp=" + options.isShowHelp()); assertThat(s).contains("valid=" + options.isValid()); }