}
public void testSystemAccess() throws Exception
{
log.debug("+++ testSystemAccess()");
IOStatelessSessionBean bean = getIOSession();
try
{
bean.createSecurityMgr();
doFail("Was able to call IOSession.createSecurityMgr");
}
catch(Exception e)
{
log.debug("IOSession.createSecurityMgr failed as expected", e);
}
try
{
bean.createSecurityMgr();
doFail("Was able to call IOSession.changeSystemOut");
}
catch(Exception e)
{
log.debug("IOSession.changeSystemOut failed as expected", e);
}
try
{
bean.changeSystemErr();
doFail("Was able to call IOSession.changeSystemErr");
}
catch(Exception e)
{
log.debug("IOSession.changeSystemErr failed as expected", e);
}
try
{
bean.loadLibrary();
doFail("Was able to call IOSession.loadLibrary");
}
catch(Exception e)
{
log.debug("IOSession.loadLibrary failed as expected", e);