Package samples.simplereturn

Examples of samples.simplereturn.SimpleReturnExample


@PrepareForTest(SimpleReturnExample.class)
public class SimpleReturnExampleUserTest {

  @Test
  public void testCreateMockDelegatedToEasyMock() throws Exception {
    SimpleReturnExample mock = createMock(SimpleReturnExample.class);
    expect(mock.mySimpleMethod()).andReturn(2);

    replay(mock);

    assertEquals(2, new SimpleReturnExampleUser(mock).myMethod());
View Full Code Here


  }

  public final native String sayFinalNative(String string);

    public final SimpleReturnExample simpleReturnExample() {
        return new SimpleReturnExample();
    }
View Full Code Here

TOP

Related Classes of samples.simplereturn.SimpleReturnExample

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.