public class ORBSingletonTest
{
@Test
public void test_disallowed_methods()
{
ORBSingleton orbs = new org.jacorb.orb.ORBSingleton();
try
{
orbs.create_exception_list();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_list(77);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_named_value("", null, 0);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_operation_list((org.omg.CORBA.Object)null);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_operation_list((org.omg.CORBA.OperationDef)null);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.string_to_object("");
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_environment();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_context_list();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.create_output_stream();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.get_current();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.get_default_context();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.get_next_response();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.list_initial_services();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.object_to_string(null);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.poll_next_response();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.resolve_initial_references("");
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
catch (Exception ex)
{
fail ("should have raised NO_IMPLEMENT");
}
try
{
orbs.send_multiple_requests_deferred(null);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.send_multiple_requests_oneway(null);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.run();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.shutdown(true);
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.work_pending();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok
}
try
{
orbs.perform_work();
fail ("should have raised NO_IMPLEMENT");
}
catch (org.omg.CORBA.NO_IMPLEMENT ex)
{
// ok