Changeset 31166 in vbox for trunk/src/VBox/Main/glue/tests/TestVBox.java
- Timestamp:
- Jul 28, 2010 2:38:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/tests/TestVBox.java
r31135 r31166 96 96 } 97 97 98 static void testMultiServer() 99 { 100 VirtualBoxManager mgr1 = VirtualBoxManager.createInstance(null); 101 VirtualBoxManager mgr2 = VirtualBoxManager.createInstance(null); 102 103 try { 104 mgr1.connect("http://i7:18083", "", ""); 105 mgr2.connect("http://main:18083", "", ""); 106 107 String mach1 = mgr1.getVBox().getMachines().get(0).getName(); 108 String mach2 = mgr2.getVBox().getMachines().get(0).getName(); 109 110 mgr1.startVm(mach1, null, 7000); 111 mgr2.startVm(mach2, null, 7000); 112 } finally { 113 mgr1.cleanup(); 114 mgr2.cleanup(); 115 } 116 } 117 98 118 public static void main(String[] args) 99 119 { 100 VirtualBoxManager mgr = VirtualBoxManager. getInstance(null);120 VirtualBoxManager mgr = VirtualBoxManager.createInstance(null); 101 121 102 122 boolean ws = false;
Note:
See TracChangeset
for help on using the changeset viewer.