Package org.easymock.internal

Examples of org.easymock.internal.ErrorMessage


*/
public class ErrorMessageTest {

    @Test
    public void testGetters() {
        final ErrorMessage m = new ErrorMessage(true, "error", 3);
        assertTrue(m.isMatching());
        assertEquals("error", m.getMessage());
        assertEquals(3, m.getActualCount());
    }
View Full Code Here


    }

    @Test
    public void testAppendTo_matchingOne() {
        final StringBuilder sb = new StringBuilder(20);
        final ErrorMessage m = new ErrorMessage(true, "error()", 2);
        m.appendTo(sb, 1);
        assertEquals("\n    error(), actual: 3", sb.toString());
    }
View Full Code Here

    }

    @Test
    public void testAppendTo_matchingNone() {
        final StringBuilder sb = new StringBuilder(20);
        final ErrorMessage m = new ErrorMessage(false, "error()", 2);
        m.appendTo(sb, 0);
        assertEquals("\n    error(), actual: 2", sb.toString());
    }
View Full Code Here

    }

    @Test
    public void testAppendTo_matchingMultiple() {
        final StringBuilder sb = new StringBuilder(20);
        final ErrorMessage m = new ErrorMessage(true, "error()", 2);
        m.appendTo(sb, 2);
        assertEquals("\n    error(), actual: 2 (+1)", sb.toString());
    }
View Full Code Here

TOP

Related Classes of org.easymock.internal.ErrorMessage

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.