Skip to content

Commit

Permalink
8350571: Remove mention of Tonga test suite from JMX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjwalls committed Feb 24, 2025
1 parent e410af0 commit 2f27445
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
10 changes: 3 additions & 7 deletions test/jdk/javax/management/MBeanServer/ExceptionFactory.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -67,12 +67,8 @@
import javax.management.remote.JMXServerErrorException;

/**
* |----- Original Description Coming From Tonga Original Source Code -------|
* | |
* | That class creates an ArrayList and fill it with an instance of each of |
* | the Exception class of the JMX API. |
* | It's dedicated to use by ExceptionTest. |
* |-------------------------------------------------------------------------|
* This class creates an ArrayList and fills it with an instance of each
* Exception class in the JMX API. Used by ExceptionTest.
*/
public class ExceptionFactory {

Expand Down
6 changes: 1 addition & 5 deletions test/jdk/javax/management/MBeanServer/ExceptionTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -188,7 +188,6 @@ private boolean matches(Exception ex, Exception refex) {
return true;
}

// Utility inner class coming from JMX Tonga test suite.
// Also used by ExceptionFactory.
static class Utils {

Expand Down Expand Up @@ -222,9 +221,6 @@ static void parseDebugProperties() {
}

/**
* Reproduces the original parsing and collection of test parameters
* from the DTonga JMX test suite.
*
* Collects passed args and returns them in a map(argname, value) structure,
* which will be then propagated as necessary to various called methods.
*/
Expand Down
6 changes: 1 addition & 5 deletions test/jdk/javax/management/mxbean/Utils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -27,7 +27,6 @@
import java.lang.reflect.Method;
import javax.management.remote.JMXConnectorServerMBean;

// utility class for MXBean* tests coming from JMX Tonga test suite
class Utils {

// DEBUG is printed depending on the DEBUG and DEBUG_LEVEL JAVA property
Expand Down Expand Up @@ -60,9 +59,6 @@ static void parseDebugProperties() {
}

/**
* Reproduces the original parsing and collection of test parameters
* from the DTonga JMX test suite.
*
* Collects passed args and returns them in a map(argname, value) structure,
* which will be then propagated as necessary to various called methods.
*/
Expand Down
6 changes: 1 addition & 5 deletions test/jdk/javax/management/query/SupportedQueryTypesTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -287,7 +287,6 @@ private int checkSet(Set<?> remoteSet, Set<?> referenceSet) {
}
}

// Utility inner class coming from JMX Tonga test suite.
private static class Utils {

// DEBUG is printed depending on the DEBUG and DEBUG_LEVEL JAVA property
Expand Down Expand Up @@ -320,9 +319,6 @@ static void parseDebugProperties() {
}

/**
* Reproduces the original parsing and collection of test parameters
* from the DTonga JMX test suite.
*
* Collects passed args and returns them in a map(argname, value) structure,
* which will be then propagated as necessary to various called methods.
*/
Expand Down
6 changes: 1 addition & 5 deletions test/jdk/javax/management/security/Utils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -28,7 +28,6 @@
import java.lang.reflect.Method;
import javax.management.remote.JMXConnectorServerMBean;

// utility class for MXBean* tests coming from JMX Tonga test suite
class Utils {

private static final String SERVER_SIDE_NAME = "-server";
Expand Down Expand Up @@ -64,9 +63,6 @@ static void parseDebugProperties() {
}

/**
* Reproduces the original parsing and collection of test parameters
* from the DTonga JMX test suite.
*
* Collects passed args and returns them in a map(argname, value) structure,
* which will be then propagated as necessary to various called methods.
*/
Expand Down

0 comments on commit 2f27445

Please sign in to comment.