Package org.easymock.internal

Examples of org.easymock.internal.Result


public class ResultTest {

    @Test
    public void createThrowResultToString() {
        final Exception e = new Exception("Error message");
        final Result r = Result.createThrowResult(e);
        assertEquals("Answer throwing " + e, r.toString());
    }
View Full Code Here


    }

    @Test
    public void createReturnResultToString() {
        final String value = "My value";
        final Result r = Result.createReturnResult(value);
        assertEquals("Answer returning " + value, r.toString());
    }
View Full Code Here

    }

    @Test
    public void createDelegateResultToString() {
        final String value = "my value";
        final Result r = Result.createDelegatingResult(value);
        assertEquals("Delegated to " + value, r.toString());
    }
View Full Code Here

TOP

Related Classes of org.easymock.internal.Result

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.