@Test public void testToLogStringFileListEmpty() throws Exception { final ScanLocation scanLocation = new ScanLocation(new ArrayList<>()); final String result = scanLocation.toLogString(); Assert.assertNotNull("toLogString()", result); }
public String toLogString() { if (scanFiles != null) { return scanFiles.toString(); } else if (scanDirectory != null) { return scanDirectory.getAbsolutePath(); } else { return "<not configured>"; } }
ScanLocation { public String toLogString() { if (scanFiles != null) { return scanFiles.toString(); } else if (scanDirectory != null) { return scanDirectory.getAbsolutePath(); } else { return "<not configured>"; } } }
ScanLocation { public String toLogString() { if (scanFiles != null) { return scanFiles.toString(); } else if (scanDirectory != null) { return scanDirectory.getAbsolutePath(); } else { return "<not configured>"; } } ScanLocation(final File scanDirectory);  ScanLocation(final List<File> scanFiles); }
ScanLocation { public String toLogString() { if (scanFiles != null) { return scanFiles.toString(); } else if (scanDirectory != null) { return scanDirectory.getAbsolutePath(); } else { return "<not configured>"; } } ScanLocation(final File scanDirectory);  ScanLocation(final List<File> scanFiles); final File getScanDirectory(); final List<File> getScanFiles(); @Override String toString(); String toLogString(); }
ScanLocation { public String toLogString() { if (scanFiles != null) { return scanFiles.toString(); } else if (scanDirectory != null) { return scanDirectory.getAbsolutePath(); } else { return "<not configured>"; } } ScanLocation(final File scanDirectory);  ScanLocation(final List<File> scanFiles); final File getScanDirectory(); final List<File> getScanFiles(); @Override String toString(); String toLogString();  }