Created
April 30, 2020 18:23
-
-
Save TsuyoshiUshio/d117b9c6e6c16bee4f7c4d2c4a601d8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.*; | |
import mockit.*; | |
import static org.junit.Assert.assertEquals; | |
public class InvocationRequestTest { | |
@Mocked | |
private ParameterBinding binding; | |
@Test | |
public void test(@Tested final Some some) throws Exception { | |
new Expectations() {{ | |
binding.getName(); result = "ushio"; | |
}}; | |
assertEquals("ushio", binding.getName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment