/
githubmirror
/
jtreg
Обзор
Документация
Войти
/
githubmirror
/
jtreg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/bootclasspath/stdDir/TestPath.java
21 строка
733 B
Jonathan Gibbons
7901941: Consolidate test layout
11 апр 2017, 01:03
11 апр 2017, 01:03
60485a4
Код
Авторство
О чём код?
/* * @test * @run main TestPath -bcp */ public class TestPath { public static void main(String... args) throws Exception { String bcp = System.getProperty("sun.boot.class.path"); String jcp = System.getProperty("java.class.path"); System.out.println("boot class path: " + bcp); System.out.println("user class path: " + jcp); String path = (args.length > 0 && args[0].equals("-bcp")) ? bcp : jcp; if (path.matches(".*BootClassPathTest.work.classes.*") && path.matches(".*tools.jar.*")) { System.out.println("classes found on expected path"); } else { throw new Exception("classes not found on expected path"); } } }