< prev index next >

test/jdk/java/lang/module/MultiReleaseJarTest.java

Print this page

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 /**
 25  * @test
 26  * @enablePreview
 27  * @modules java.base/jdk.internal.module
 28  * @library /test/lib
 29  * @build MultiReleaseJarTest
 30  *        jdk.test.lib.util.JarUtils
 31  *        jdk.test.lib.util.ModuleInfoWriter
 32  * @run testng MultiReleaseJarTest
 33  * @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarTest
 34  * @summary Basic test of modular JARs as multi-release JARs
 35  */
 36 
 37 import java.io.File;
 38 import java.io.InputStream;
 39 import java.io.OutputStream;
 40 import java.lang.module.ModuleDescriptor;
 41 import java.lang.module.ModuleFinder;
 42 import java.lang.module.ModuleReader;
 43 import java.lang.module.ModuleReference;
 44 import java.net.URI;
 45 import java.net.URLConnection;
 46 import java.nio.ByteBuffer;
 47 import java.nio.file.Files;
 48 import java.nio.file.Path;
 49 import java.nio.file.Paths;
 50 import java.util.ArrayList;
 51 import java.util.HashMap;

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 /**
 25  * @test
 26  * @enablePreview
 27  * @modules java.base/jdk.internal.module
 28  * @library /test/lib
 29  * @build MultiReleaseJarTest
 30  *        jdk.test.lib.util.JarUtils

 31  * @run testng MultiReleaseJarTest
 32  * @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarTest
 33  * @summary Basic test of modular JARs as multi-release JARs
 34  */
 35 
 36 import java.io.File;
 37 import java.io.InputStream;
 38 import java.io.OutputStream;
 39 import java.lang.module.ModuleDescriptor;
 40 import java.lang.module.ModuleFinder;
 41 import java.lang.module.ModuleReader;
 42 import java.lang.module.ModuleReference;
 43 import java.net.URI;
 44 import java.net.URLConnection;
 45 import java.nio.ByteBuffer;
 46 import java.nio.file.Files;
 47 import java.nio.file.Path;
 48 import java.nio.file.Paths;
 49 import java.util.ArrayList;
 50 import java.util.HashMap;
< prev index next >