Source:
<code>public static void main(String[] args) throws Exception { String mintMode = null; if (mintEnv) { mintMode = System.getenv("MINT_MODE"); } Process minioProcess = null; if (args.length != 4) { endpoint = "http://localhost:9000"; accessKey = "minio"; secretKey = "minio123"; region = "us-east-1"; if (!downloadMinio()) { System.out.println("usage: FunctionalTest <ENDPOINT> <ACCESSKEY> <SECRETKEY> <REGION>"); System.exit(-1); } minioProcess = runMinio(); try { int exitValue = minioProcess.exitValue(); System.out.println("minio server process exited with " + exitValue); System.out.println("usage: FunctionalTest <ENDPOINT> <ACCESSKEY> <SECRETKEY> <REGION>"); System.exit(-1); } catch (IllegalThreadStateException e) { ignore(); } } else { String dataDir = System.getenv("MINT_DATA_DIR"); if (dataDir != null && !dataDir.equals("")) { mintEnv = true; dataFile1Kb = Paths.get(dataDir, "datafile-1-kB"); dataFile6Mb = Paths.get(dataDir, "datafile-6-MB"); } endpoint = args[0]; accessKey = args[1]; secretKey = args[2]; region = args[3]; } int exitValue = 0; try { client = new MinioClient(endpoint, accessKey, secretKey); if (mintEnv) { if (mintMode != null && mintMode.equals("full")) { FunctionalTest.runTests(); } else { <START> FunctionalTest.runQuickTests(); <END> } } else { FunctionalTest.runTests(); bucketName = getRandomName(); client = new MinioClient(endpoint, accessKey, secretKey, region); FunctionalTest.runQuickTests(); } } catch (Exception e) { exitValue = -1; } finally { if (minioProcess != null) { minioProcess.destroy(); } } System.exit(exitValue); }</code><technical_language>print trace for non-mint env</technical_language>

Target:
public static void main(String[] args) throws Exception { String mintMode = null; if (mintEnv) { mintMode = System.getenv("MINT_MODE"); } Process minioProcess = null; if (args.length != 4) { endpoint = "http://localhost:9000"; accessKey = "minio"; secretKey = "minio123"; region = "us-east-1"; if (!downloadMinio()) { System.out.println("usage: FunctionalTest <ENDPOINT> <ACCESSKEY> <SECRETKEY> <REGION>"); System.exit(-1); } minioProcess = runMinio(); try { int exitValue = minioProcess.exitValue(); System.out.println("minio server process exited with " + exitValue); System.out.println("usage: FunctionalTest <ENDPOINT> <ACCESSKEY> <SECRETKEY> <REGION>"); System.exit(-1); } catch (IllegalThreadStateException e) { ignore(); } } else { String dataDir = System.getenv("MINT_DATA_DIR"); if (dataDir != null && !dataDir.equals("")) { mintEnv = true; dataFile1Kb = Paths.get(dataDir, "datafile-1-kB"); dataFile6Mb = Paths.get(dataDir, "datafile-6-MB"); } endpoint = args[0]; accessKey = args[1]; secretKey = args[2]; region = args[3]; } int exitValue = 0; try { client = new MinioClient(endpoint, accessKey, secretKey); if (mintEnv) { if (mintMode != null && mintMode.equals("full")) { FunctionalTest.runTests(); } else { FunctionalTest.runQuickTests(); } } else { FunctionalTest.runTests(); bucketName = getRandomName(); client = new MinioClient(endpoint, accessKey, secretKey, region); FunctionalTest.runQuickTests(); } } catch (Exception e) { if (!mintEnv) { e.printStackTrace(); } exitValue = -1; } finally { if (minioProcess != null) { minioProcess.destroy(); } } System.exit(exitValue); }