< prev index next >

test/tools/jlink/ImageFilePoolTest.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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  * @summary Test a pool containing external files.
  27  * @author Andrei Eremeev
  28  * @modules jdk.jlink/jdk.tools.jlink.internal

  29  * @run build ImageFilePoolTest
  30  * @run main ImageFilePoolTest
  31  */
  32 
  33 import java.io.ByteArrayInputStream;
  34 import java.util.Optional;
  35 import java.util.function.Function;
  36 import jdk.tools.jlink.internal.ResourcePoolEntryFactory;
  37 import jdk.tools.jlink.internal.ResourcePoolManager;
  38 import jdk.tools.jlink.plugin.ResourcePoolEntry;
  39 import jdk.tools.jlink.plugin.ResourcePool;
  40 
  41 public class ImageFilePoolTest {
  42     public static void main(String[] args) throws Exception {
  43         new ImageFilePoolTest().test();
  44     }
  45 
  46     public void test() throws Exception {
  47         checkNegative();
  48         checkVisitor();




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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  * @summary Test a pool containing external files.
  27  * @author Andrei Eremeev
  28  * @modules jdk.jlink/jdk.tools.jlink.internal
  29  *          jdk.jlink/jdk.tools.jlink.plugin
  30  * @run build ImageFilePoolTest
  31  * @run main ImageFilePoolTest
  32  */
  33 
  34 import java.io.ByteArrayInputStream;
  35 import java.util.Optional;
  36 import java.util.function.Function;
  37 import jdk.tools.jlink.internal.ResourcePoolEntryFactory;
  38 import jdk.tools.jlink.internal.ResourcePoolManager;
  39 import jdk.tools.jlink.plugin.ResourcePoolEntry;
  40 import jdk.tools.jlink.plugin.ResourcePool;
  41 
  42 public class ImageFilePoolTest {
  43     public static void main(String[] args) throws Exception {
  44         new ImageFilePoolTest().test();
  45     }
  46 
  47     public void test() throws Exception {
  48         checkNegative();
  49         checkVisitor();


< prev index next >