Package net.emaze.dysfunctional.dispatching.delegates

Examples of net.emaze.dysfunctional.dispatching.delegates.Delegate.perform()


    }

    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Delegate d = new LongTryParser(10);
        d.perform(new Object());
    }       
   
    @Test
    public void parsingNullStringYieldsNothing() {
        final Maybe<Long> got = new LongTryParser(10).perform(null);
View Full Code Here


    }
   
    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Delegate d = new ShortParser(10);
        d.perform(new Object());
    }       

   
    @Test(expected=NumberFormatException.class)
    public void parsingInvalidStringYieldsException() {
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.