Examples of BinaryAction


Examples of net.emaze.dysfunctional.dispatching.actions.BinaryAction

        Assert.assertTrue(duration >= expectedMillis);
    }

    @Test(expected = ClassCastException.class)
    public void passingWrongTypeForTimeUnitInErasureYieldsException() {
        BinaryAction action = sleeper;
        action.perform(1l, new Object());
    }
View Full Code Here

Examples of net.emaze.dysfunctional.dispatching.actions.BinaryAction

        action.perform(1l, new Object());
    }

    @Test(expected = ClassCastException.class)
    public void passingWrongTypeForDurationInErasureYieldsException() {
        BinaryAction action = sleeper;
        action.perform(new Object(), TimeUnit.MILLISECONDS);
    }
View Full Code Here

Examples of net.emaze.dysfunctional.dispatching.actions.BinaryAction

    }
   
    @Test(expected = ClassCastException.class)
    public void passingWrongTypeForTimeUnitInErasureYieldsException() {
        final InterruptingEverySecondTimeStrategy interruptingStrategy = new InterruptingEverySecondTimeStrategy(0);
        BinaryAction action = new SleepAtLeast(interruptingStrategy);       
        action.perform(1l, new Object());
    }
View Full Code Here

Examples of net.emaze.dysfunctional.dispatching.actions.BinaryAction

    }

    @Test(expected = ClassCastException.class)
    public void passingWrongTypeForDurationInErasureYieldsException() {
        final InterruptingEverySecondTimeStrategy interruptingStrategy = new InterruptingEverySecondTimeStrategy(0);
        BinaryAction action = new SleepAtLeast(interruptingStrategy);       
        action.perform(new Object(), TimeUnit.MILLISECONDS);
    }   
View Full Code Here

Examples of net.emaze.dysfunctional.dispatching.actions.BinaryAction

        Assert.assertEquals(ICE_AGE + 1, currentTimeInMillis);
    }

    @Test(expected = ClassCastException.class)
    public void passingWrongTypeForTimeUnitInErasureYieldsException() {
        BinaryAction action = new Sleep(clock);
        action.perform(1l, new Object());
    }
View Full Code Here

Examples of net.emaze.dysfunctional.dispatching.actions.BinaryAction

        action.perform(1l, new Object());
    }

    @Test(expected = ClassCastException.class)
    public void passingWrongTypeForDurationInErasureYieldsException() {
        BinaryAction action = new Sleep(clock);
        action.perform(new Object(), TimeUnit.MILLISECONDS);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.