Search in sources :

Example 1 with NonLockingAltContainer

use of net.dempsy.container.altnonlocking.NonLockingAltContainer in project Dempsy by Dempsy.

the class TestOutputSchedulers method setUp.

/**
 * Sets the up.
 *
 * @throws Exception the exception
 */
@Before
public void setUp() throws Exception {
    outputInvoked.set(false);
    concurrencySetTo.set(-1);
    // initializing
    container = new NonLockingAltContainer() {

        @Override
        public void invokeOutput() {
            outputInvoked.set(true);
        }

        @Override
        public void setOutputConcurrency(final int concurrency) {
            concurrencySetTo.set(concurrency);
        }
    };
}
Also used : NonLockingAltContainer(net.dempsy.container.altnonlocking.NonLockingAltContainer) Before(org.junit.Before)

Aggregations

NonLockingAltContainer (net.dempsy.container.altnonlocking.NonLockingAltContainer)1 Before (org.junit.Before)1