Package net.emaze.dysfunctional.dispatching.logic

Examples of net.emaze.dysfunctional.dispatching.logic.Predicate


        new StringEqualsIgnoreCase("a").accept(null);
    }

    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringEqualsIgnoreCase("a");
        p.accept(new Object());
    }   
View Full Code Here


        new StringEndsWith("a").accept(null);
    }
   
    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringEndsWith("a");
        p.accept(new Object());
    }   
View Full Code Here

        new StringContains("a").accept(null);
    }
   
    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringContains("a");
        p.accept(new Object());
    }
View Full Code Here

        new StringEndsWithIgnoreCase("a").accept(null);
    }
   
    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringEndsWithIgnoreCase("a");
        p.accept(new Object());
    }   
View Full Code Here

        new StringStartsWith("a").accept(null);
    }
   
    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringStartsWith("a");
        p.accept(new Object());
    }   
View Full Code Here

        new StringStartsWithIgnoreCase("a").accept(null);
    }

    @Test(expected = ClassCastException.class)
    public void passingNonStringToErasureYieldsException() {
        Predicate p = new StringStartsWithIgnoreCase("a");
        p.accept(new Object());
    }
View Full Code Here

        new StringContainsIgnoreCase("a").accept(null);
    }
   
    @Test(expected=ClassCastException.class)
    public void passingNonStringToErasureYieldsException(){
        Predicate p = new StringContainsIgnoreCase("a");
        p.accept(new Object());
    }
View Full Code Here

TOP

Related Classes of net.emaze.dysfunctional.dispatching.logic.Predicate

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.