< prev index next >

test/java/util/jar/JarFile/mrjar/MultiReleaseJarAPI.java

Print this page
rev 17324 : 8181759: add explicit @build actions for jdk.test.lib classes in all :tier1 tests
Reviewed-by: duke


  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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 8132734 8144062 8165723
  27  * @summary Test the extended API and the aliasing additions in JarFile that
  28  *          support multi-release jar files
  29  * @library /lib/testlibrary/java/util/jar /test/lib
  30  * @build Compiler JarBuilder CreateMultiReleaseTestJars

  31  * @run testng MultiReleaseJarAPI
  32  */
  33 
  34 import java.io.File;
  35 import java.io.IOException;
  36 import java.io.InputStream;
  37 import java.nio.charset.StandardCharsets;
  38 import java.nio.file.Files;
  39 import java.util.Arrays;
  40 import java.util.Map;
  41 import java.util.Random;
  42 import java.util.concurrent.atomic.AtomicInteger;
  43 import java.util.jar.JarFile;
  44 import java.util.zip.ZipEntry;
  45 import java.util.zip.ZipFile;
  46 
  47 import jdk.test.lib.RandomFactory;
  48 
  49 import org.testng.Assert;
  50 import org.testng.annotations.AfterClass;




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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 8132734 8144062 8165723
  27  * @summary Test the extended API and the aliasing additions in JarFile that
  28  *          support multi-release jar files
  29  * @library /lib/testlibrary/java/util/jar /test/lib
  30  * @build jdk.test.lib.RandomFactory
  31  *        Compiler JarBuilder CreateMultiReleaseTestJars
  32  * @run testng MultiReleaseJarAPI
  33  */
  34 
  35 import java.io.File;
  36 import java.io.IOException;
  37 import java.io.InputStream;
  38 import java.nio.charset.StandardCharsets;
  39 import java.nio.file.Files;
  40 import java.util.Arrays;
  41 import java.util.Map;
  42 import java.util.Random;
  43 import java.util.concurrent.atomic.AtomicInteger;
  44 import java.util.jar.JarFile;
  45 import java.util.zip.ZipEntry;
  46 import java.util.zip.ZipFile;
  47 
  48 import jdk.test.lib.RandomFactory;
  49 
  50 import org.testng.Assert;
  51 import org.testng.annotations.AfterClass;


< prev index next >