Parser parser = new TargetParser();
TargetScanner scanner = new TargetScanner(parser);
String target = ".";
ScanData scanData = scanner.scan(target, ScanType.JARS);
List<byte[]> data = scanData.getDatalist();
List<String> files = scanData.getFilelist();
System.out.println(" jars_");
System.out.println(" data count: " + data.size());
System.out.println(" files count: " + files.size());
assertFalse(data.isEmpty());
assertTrue(files.isEmpty());
scanData = scanner.scan(target, ScanType.PATHS);
data = scanData.getDatalist();
files = scanData.getFilelist();
System.out.println(" paths_");
System.out.println(" data count: " + data.size());
System.out.println(" files count: " + files.size());
assertTrue(data.isEmpty());
assertFalse(files.isEmpty());
scanData = scanner.scan(target, ScanType.ZIPS);
data = scanData.getDatalist();
files = scanData.getFilelist();
System.out.println(" zips_");
System.out.println(" data count: " + data.size());
System.out.println(" files count: " + files.size());
assertTrue(data.isEmpty());
assertTrue(files.isEmpty());
scanData = scanner.scan(target, ScanType.ALL);
data = scanData.getDatalist();
files = scanData.getFilelist();
System.out.println(" all_");
System.out.println(" data count: " + data.size());
System.out.println(" files count: " + files.size());
assertFalse(data.isEmpty());