Package com.sun.sgs.test.util

Examples of com.sun.sgs.test.util.DummyKernelRunnable


    @Test
    public void testScheduleNonDurableTaskNegativeTime() throws Exception {
        txnScheduler.runTask(
            new TestAbstractKernelRunnable() {
                public void run() {
                    KernelRunnable r = new DummyKernelRunnable();
                    try {
                        taskService.scheduleNonDurableTask(r, -1L, false);
                        fail("Expected IllegalArgumentException");
                    } catch (IllegalArgumentException e) {
                        System.err.println(e);
View Full Code Here


        }
        ScheduledTaskImpl(long delay) {
            this(delay, NON_RECURRING);
        }
        ScheduledTaskImpl(long delay, long period) {
            this.task = new DummyKernelRunnable();
            this.owner = new DummyIdentity();
            this.start = System.currentTimeMillis() + delay;
            this.period = period;
        }
View Full Code Here

    @Test
    public void testScheduleNonDurableTaskNegativeTime() throws Exception {
        txnScheduler.runTask(
            new TestAbstractKernelRunnable() {
                public void run() {
                    KernelRunnable r = new DummyKernelRunnable();
                    try {
                        taskService.scheduleNonDurableTask(r, -1L, false);
                        fail("Expected IllegalArgumentException");
                    } catch (IllegalArgumentException e) {
                        System.err.println(e);
View Full Code Here

TOP

Related Classes of com.sun.sgs.test.util.DummyKernelRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.