use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.
the class PropertyDoubleTest method testNewSubscriptionAlarm.
public void testNewSubscriptionAlarm() {
try {
CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
ROproperty.new_subscription_Alarm(null, descIn);
fail("NO_IMPLEMENT exception expected");
} catch (NO_IMPLEMENT ex) {
// OK
}
}
use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.
the class PropertySeqTest method testCreatePostponedMonitor.
public void testCreatePostponedMonitor() {
// TODO tmp
if (true)
return;
try {
CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
ROpropertyLongSeq.create_postponed_monitor(0, null, descIn);
fail("NO_IMPLEMENT exception expected");
} catch (NO_IMPLEMENT ex) {
// OK
}
}
use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.
the class PropertySeqTest method testNewSubscriptionAlarm.
public void testNewSubscriptionAlarm() {
try {
CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
ROpropertyDoubleSeq.new_subscription_Alarm(null, descIn);
fail("NO_IMPLEMENT exception expected");
} catch (NO_IMPLEMENT ex) {
// OK
}
}
use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.
the class EventSupplierImpl method sendEvents.
/** Sends some events to an event channel.
* @param param number of events to send
*/
public void sendEvents(short param) {
m_logger.info("Now sending events via NCPublisher...");
try {
//first send out some number of events.
EventDescription t_block = new EventDescription("no name", 32L, 64L);
for (short i = 0; i < param; i++) {
m_supplier.publishEvent(t_block);
Thread.sleep(1);
}
//fake a subscription change notification (should be disabled on the proxy consumer in the real system)
try {
m_supplier.subscription_change(new org.omg.CosNotification.EventType[] {}, new org.omg.CosNotification.EventType[] {});
m_logger.warning("Call to 'subscription_change' did not produce the expected NO_IMPLEMENT exception.");
} catch (NO_IMPLEMENT ex) {
// expected
}
} catch (Exception e) {
System.err.println(e);
}
}
use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.
the class EventSupplierCDBChannel method sendEvents.
/**
* Sends some events to an event channel.
*
* @param param
* number of events to send
*/
public void sendEvents(short param) {
System.out.println("Now sending simplesupplier events...");
try {
// first send out some number of events.
EventDescription t_block = new EventDescription("no name", 32L, 64L);
for (short i = 0; i < param; i++) {
m_supplier.publishEvent(t_block);
}
//fake a subscription change notification (should be disabled on the proxy consumer in the real system)
try {
m_supplier.subscription_change(new org.omg.CosNotification.EventType[] {}, new org.omg.CosNotification.EventType[] {});
m_logger.warning("Call to 'subscription_change' did not produce the expected NO_IMPLEMENT exception.");
} catch (NO_IMPLEMENT ex) {
// expected
}
} catch (Exception e) {
System.err.println(e);
}
}
Aggregations