773N/A/*
2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
773N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
773N/A *
773N/A * This code is free software; you can redistribute it and/or modify it
773N/A * under the terms of the GNU General Public License version 2 only, as
773N/A * published by the Free Software Foundation.
773N/A *
773N/A * This code is distributed in the hope that it will be useful, but WITHOUT
773N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
773N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
773N/A * version 2 for more details (a copy is included in the LICENSE file that
773N/A * accompanied this code).
773N/A *
773N/A * You should have received a copy of the GNU General Public License version
773N/A * 2 along with this work; if not, write to the Free Software Foundation,
773N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
773N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
773N/A */
773N/A
773N/A/**
773N/A * @test
773N/A * @bug 6653384
773N/A * @summary No exception should be thrown.
773N/A * @run main GetMediasTest
773N/A */
773N/Aimport javax.print.PrintService;
773N/Aimport javax.print.PrintServiceLookup;
773N/Aimport javax.print.attribute.standard.Media;
773N/A
773N/Apublic class GetMediasTest {
773N/A public static void main(String[] args) {
773N/A PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
773N/A for(final PrintService service: services) {
773N/A Thread thread = new Thread() {
773N/A public void run() {
773N/A service.getSupportedAttributeValues(Media.class, null, null);
773N/A }
773N/A };
773N/A thread.start();
773N/A }
773N/A }
773N/A}