Skip to content

Instantly share code, notes, and snippets.

@donchan922
Created June 1, 2019 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/e6ed1d5ae348179da3939ac138023029 to your computer and use it in GitHub Desktop.
Save donchan922/e6ed1d5ae348179da3939ac138023029 to your computer and use it in GitHub Desktop.
// Spring MVCのモック
private MockMvc mockMvc;
@BeforeEach
void setup() {
// Spring MVCのモックを設定する
this.mockMvc = MockMvcBuilders.standaloneSetup(new DemoController()).build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment