Search in sources :

Example 1 with Monitorpattern

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

the class EnumPropertyTest method testCreateMonitor.

public void testCreateMonitor() {
    // TODO do test with null callback ;)
    // TODO implement...
    CBStatesImpl cb = new CBStatesImpl();
    CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
    Monitorpattern monitor = ROproperty.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 : Monitorpattern(alma.ACS.Monitorpattern) CBDescIn(alma.ACS.CBDescIn)

Aggregations

CBDescIn (alma.ACS.CBDescIn)1 Monitorpattern (alma.ACS.Monitorpattern)1