< prev index next >

test/com/sun/jdi/CompatibleConnectors.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc 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 /* @test
  25  * @bug 4287596
  26  * @summary Unit test for "Pluggable Connectors and Transports" feature.
  27  *
  28  * This test checks that VirtualMachineManager creates Connectors that
  29  * are "compatible" those created by 1.4 or earilier releases.
  30  * @modules jdk.jdi
  31  */
  32 
  33 import com.sun.jdi.*;
  34 import com.sun.jdi.connect.*;
  35 import java.util.*;
  36 
  37 public class CompatibleConnectors {
  38 
  39     // number of tests that fail
  40     static int failures;
  41 
  42     static void fail(String msg) {
  43         System.out.println(msg + " - test failed.");
  44         failures++;
  45     }
  46 
  47     // the AttachingConnectors that we expect
  48     static Object[][] attachingConnectors() {
  49         return new Object[][] {
  50             { "com.sun.jdi.SocketAttach",




  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 /* @test
  25  * @bug 4287596
  26  * @summary Unit test for "Pluggable Connectors and Transports" feature.
  27  *
  28  * This test checks that VirtualMachineManager creates Connectors that
  29  * are "compatible" those created by 1.4 or earilier releases.

  30  */
  31 
  32 import com.sun.jdi.*;
  33 import com.sun.jdi.connect.*;
  34 import java.util.*;
  35 
  36 public class CompatibleConnectors {
  37 
  38     // number of tests that fail
  39     static int failures;
  40 
  41     static void fail(String msg) {
  42         System.out.println(msg + " - test failed.");
  43         failures++;
  44     }
  45 
  46     // the AttachingConnectors that we expect
  47     static Object[][] attachingConnectors() {
  48         return new Object[][] {
  49             { "com.sun.jdi.SocketAttach",


< prev index next >