Package org.jbehave.core.mock

Examples of org.jbehave.core.mock.Matcher.matches()


        ensureThat(new Long((long)1), matchesIntTypeValue);
    }
   
    public void shouldCreateMatcherForPrimitiveCharType() throws Exception {
        Matcher c = m.eq('c');
        Ensure.that("matcher should match Character 'c'", c.matches(new Character('c')));
    }
   
    public void shouldCreateMatcherForPrimitiveLongType() throws Exception {
        Matcher c = m.eq(1l);
        Ensure.that(c.matches(new Long(1)));
View Full Code Here


        Ensure.that("matcher should match Character 'c'", c.matches(new Character('c')));
    }
   
    public void shouldCreateMatcherForPrimitiveLongType() throws Exception {
        Matcher c = m.eq(1l);
        Ensure.that(c.matches(new Long(1)));
    }
   
    public void shouldCreateMatcherForPrimitiveBooleanType() throws Exception {
        Matcher c = m.eq(true);
        Ensure.that(c.matches(Boolean.TRUE));
View Full Code Here

        Ensure.that(c.matches(new Long(1)));
    }
   
    public void shouldCreateMatcherForPrimitiveBooleanType() throws Exception {
        Matcher c = m.eq(true);
        Ensure.that(c.matches(Boolean.TRUE));
    }
   
    public void shouldCreateMatcherForPrimitiveFloatType() throws Exception {
        float f = 1;
        Matcher c = m.eq(f);
View Full Code Here

    }
   
    public void shouldCreateMatcherForPrimitiveFloatType() throws Exception {
        float f = 1;
        Matcher c = m.eq(f);
        Ensure.that(c.matches(new Float(1)));
    }
   
    public void shouldCreateMatcherForPrimitiveByteType() throws Exception {
        byte b = 1;
        Matcher c = m.eq(b);
View Full Code Here

    }
   
    public void shouldCreateMatcherForPrimitiveByteType() throws Exception {
        byte b = 1;
        Matcher c = m.eq(b);
        Ensure.that(c.matches(new Byte(b)));
    }
   
    public void shouldCreateMatcherForPrimitiveShortType() throws Exception {
        short s = 1;
        Matcher c = m.eq(s);
View Full Code Here

    }
   
    public void shouldCreateMatcherForPrimitiveShortType() throws Exception {
        short s = 1;
        Matcher c = m.eq(s);
        Ensure.that(c.matches(new Short(s)));
    }
   
    public interface BehaviourInterface1 {
        int getInt();
        long getLong();
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.