Search in sources :

Example 6 with Monitorlong

use of alma.ACS.Monitorlong in project ACS by ACS-Community.

the class PropertySeqTest method testCreateMonitorLong.

public void testCreateMonitorLong() {
    // TODO do test with null callback ;)
    // TODO implement...
    CBlongSeqImpl cb = new CBlongSeqImpl();
    CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
    Monitorlong monitor = ROpropertyLongSeq.create_monitor(cb._this(orb), descIn);
    try {
        // 10.5 sec
        Thread.sleep(10500);
    } catch (InterruptedException ie) {
    }
    synchronized (cb) {
        try {
            monitor.destroy();
            // wait for 3s
            cb.wait(3000);
        } catch (InterruptedException ie) {
        }
    }
// TODO test if done was called
}
Also used : Monitorlong(alma.ACS.Monitorlong) CBDescIn(alma.ACS.CBDescIn)

Aggregations

Monitorlong (alma.ACS.Monitorlong)6 CBDescIn (alma.ACS.CBDescIn)4 ORB (org.omg.CORBA.ORB)2