< prev index next >
test/tools/launcher/modules/upgrademodulepath/UpgradeModulePathTest.java
Print this page
rev 17315 : 8181335: remove packageless CompilerUtils
Reviewed-by: duke
*** 1,7 ****
/*
! * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,41 ****
* questions.
*/
/**
* @test
! * @library /lib/testlibrary
* @modules jdk.compiler
! * @build UpgradeModulePathTest CompilerUtils jdk.testlibrary.*
* @run testng UpgradeModulePathTest
* @summary Basic test for java --upgrade-module-path
*/
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
import static jdk.testlibrary.ProcessTools.executeTestJava;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
--- 21,42 ----
* questions.
*/
/**
* @test
! * @library /lib/testlibrary /test/lib
* @modules jdk.compiler
! * @build UpgradeModulePathTest jdk.test.lib.compiler.CompilerUtils jdk.testlibrary.*
* @run testng UpgradeModulePathTest
* @summary Basic test for java --upgrade-module-path
*/
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
+ import jdk.test.lib.compiler.CompilerUtils;
import static jdk.testlibrary.ProcessTools.executeTestJava;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
*** 44,54 ****
* This test upgrades module java.transaction. The upgraded module has a
* dependency on module java.enterprise that is deployed on the application
* modue path.
*/
-
@Test
public class UpgradeModulePathTest {
private static final String TEST_SRC = System.getProperty("test.src");
private static final Path SRC_DIR = Paths.get(TEST_SRC, "src");
--- 45,54 ----
< prev index next >