TestVBox.java revision 3365a35e0dba2c12a9f6d46869d3e6db1668bf24
/* $Id:$ */
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
import org.virtualbox_3_3.*;
public class TestVBox
{
{
switch (type)
{
case OnMachineStateChanged:
else
break;
}
}
static class EventHandler
{
EventHandler() {}
{
try {
} catch (Throwable t) {
t.printStackTrace();
}
}
}
{
// active mode for Java doesn't fully work yet, and using passive
// is more portable (the only mode for MSCOM and WS) and thus generally
// recommended
try {
for (int i=0; i<100; i++)
{
{
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
{
{
}
}
{
}
static void testMultiServer()
{
try {
} finally {
}
}
{
boolean ws = false;
{
ws = true;
}
if (ws)
{
try {
} catch (VBoxException e) {
e.printStackTrace();
}
}
try
{
{
}
}
catch (VBoxException e)
{
e.printStackTrace();
}
{
e.printStackTrace();
}
if (ws)
{
try {
mgr.disconnect();
} catch (VBoxException e) {
e.printStackTrace();
}
}
}
}