test/jdk/java/lang/module/ModuleNamesTest.java
changeset 52427 3c6aa484536c
parent 47216 71c04702a3d5
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @modules java.base/jdk.internal.misc
    26  * @modules java.base/jdk.internal.access
    27  *          java.base/jdk.internal.module
    27  *          java.base/jdk.internal.module
    28  * @run testng ModuleNamesTest
    28  * @run testng ModuleNamesTest
    29  * @summary Basic test of reading a module-info.class with module names that
    29  * @summary Basic test of reading a module-info.class with module names that
    30  *          are legal in class files but not legal in the Java Language
    30  *          are legal in class files but not legal in the Java Language
    31  */
    31  */
    39 import java.lang.module.ModuleDescriptor.Requires;
    39 import java.lang.module.ModuleDescriptor.Requires;
    40 import java.nio.ByteBuffer;
    40 import java.nio.ByteBuffer;
    41 import java.util.Optional;
    41 import java.util.Optional;
    42 import java.util.Set;
    42 import java.util.Set;
    43 
    43 
    44 import jdk.internal.misc.SharedSecrets;
    44 import jdk.internal.access.SharedSecrets;
    45 import jdk.internal.module.ModuleInfoWriter;
    45 import jdk.internal.module.ModuleInfoWriter;
    46 
    46 
    47 import org.testng.annotations.DataProvider;
    47 import org.testng.annotations.DataProvider;
    48 import org.testng.annotations.Test;
    48 import org.testng.annotations.Test;
    49 import static org.testng.Assert.*;
    49 import static org.testng.Assert.*;