Lines Matching refs:agent
40 String agent = args[1];
57 // Test 1a - read the agent properties from the target VM.
58 // By default, the agent property contains "sun.java.command",
61 System.out.println(" - Test: agent properties in target VM");
66 System.out.println(" - agent properties non-empty as expected");
68 // Test 2 - attempt to load an agent that does not exist
69 System.out.println(" - Test: Load an agent that does not exist");
76 // Test 3 - load an "bad" agent (agentmain throws an exception)
77 System.out.println(" - Test: Load a bad agent");
80 + "not being found and an agent failing to start.");
97 vm.loadAgent(agent);
105 // it the port number of our listener. When agent loads it should connect
111 System.out.println(" - Test: End-to-end connection with agent");
117 vm.loadAgent(agent, Integer.toString(port));
119 System.out.println(" - Waiting for agent to connect back to tool ...");
121 System.out.println(" - Connected to agent.");
124 // Now with an agent that does redefine.