< prev index next >

test/jdk/javax/management/security/AuthorizationTest.java

Print this page
rev 51731 : imported patch 8210732

*** 25,35 **** * @test * @bug 8058865 * @summary Checks various authentication behavior from remote jmx client * @author Olivier Lagneau * @modules java.management.rmi - * @library /lib/testlibrary * @library /test/lib * @compile Simple.java * @run main/othervm/timeout=300 -DDEBUG_STANDARD -Dusername=username1 -Dpassword=password1 AuthorizationTest -server -mapType x.access.file;x.password.file -populate -client -mapType credentials * @run main/othervm/timeout=300 -DDEBUG_STANDARD -Dusername=username2 -Dpassword=password2 AuthorizationTest -server -mapType x.access.file;x.password.file -populate -client -mapType credentials -expectedCreateException -expectedSetException -expectedInvokeException * @run main/othervm/timeout=300 -DDEBUG_STANDARD -Dusername=username6 -Dpassword=password6 AuthorizationTest -server -mapType x.access.file;x.password.file -populate -client -mapType credentials -expectedCreateException -expectedGetException -expectedSetException -expectedInvokeException --- 25,34 ----
*** 175,185 **** * */ private List<String> buildCommandLine(String args[]) { List<String> opts = new ArrayList<>(); opts.add(JDKToolFinder.getJDKTool("java")); ! opts.addAll(Arrays.asList(jdk.testlibrary.Utils.getTestJavaOpts())); String usernameValue = System.getProperty(USERNAME_PROPERTY); if (usernameValue != null) { opts.add("-D" + USERNAME_PROPERTY + "=" + usernameValue); } --- 174,184 ---- * */ private List<String> buildCommandLine(String args[]) { List<String> opts = new ArrayList<>(); opts.add(JDKToolFinder.getJDKTool("java")); ! opts.addAll(Arrays.asList(jdk.test.lib.Utils.getTestJavaOpts())); String usernameValue = System.getProperty(USERNAME_PROPERTY); if (usernameValue != null) { opts.add("-D" + USERNAME_PROPERTY + "=" + usernameValue); }
< prev index next >