< prev index next >

test/jdk/java/lang/module/ModuleDescriptorTest.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  * @bug 8142968 8158456 8298875
  27  * @enablePreview
  28  * @modules java.base/jdk.internal.access
  29  *          java.base/jdk.internal.module
  30  * @library /test/lib
  31  * @build jdk.test.lib.util.ModuleInfoWriter
  32  * @run testng ModuleDescriptorTest
  33  * @summary Basic test for java.lang.module.ModuleDescriptor and its builder
  34  */
  35 
  36 import java.io.ByteArrayOutputStream;
  37 import java.io.IOException;
  38 import java.io.InputStream;
  39 import java.lang.module.InvalidModuleDescriptorException;
  40 import java.lang.module.ModuleDescriptor;
  41 import java.lang.module.ModuleDescriptor.Builder;
  42 import java.lang.module.ModuleDescriptor.Exports;
  43 import java.lang.module.ModuleDescriptor.Opens;
  44 import java.lang.module.ModuleDescriptor.Requires;
  45 import java.lang.module.ModuleDescriptor.Provides;
  46 import java.lang.module.ModuleDescriptor.Requires.Modifier;
  47 import java.lang.module.ModuleDescriptor.Version;
  48 import java.nio.ByteBuffer;
  49 import java.util.ArrayList;
  50 import java.util.Collections;
  51 import java.util.EnumSet;

  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  * @bug 8142968 8158456 8298875
  27  * @enablePreview
  28  * @modules java.base/jdk.internal.access
  29  *          java.base/jdk.internal.module
  30  * @library /test/lib

  31  * @run testng ModuleDescriptorTest
  32  * @summary Basic test for java.lang.module.ModuleDescriptor and its builder
  33  */
  34 
  35 import java.io.ByteArrayOutputStream;
  36 import java.io.IOException;
  37 import java.io.InputStream;
  38 import java.lang.module.InvalidModuleDescriptorException;
  39 import java.lang.module.ModuleDescriptor;
  40 import java.lang.module.ModuleDescriptor.Builder;
  41 import java.lang.module.ModuleDescriptor.Exports;
  42 import java.lang.module.ModuleDescriptor.Opens;
  43 import java.lang.module.ModuleDescriptor.Requires;
  44 import java.lang.module.ModuleDescriptor.Provides;
  45 import java.lang.module.ModuleDescriptor.Requires.Modifier;
  46 import java.lang.module.ModuleDescriptor.Version;
  47 import java.nio.ByteBuffer;
  48 import java.util.ArrayList;
  49 import java.util.Collections;
  50 import java.util.EnumSet;
< prev index next >