Code example for MockMvc

Methods: perform

0
	} 
 
	@Test 
	public void getLoginErrorPage() throws Exception 
	{ 
		this.mockMvc.perform(get("/login").param("error", "")).andExpect(status().isOk()) 
				.andExpect(view().name("view-login")).andExpect(model().attributeExists("errorMessage")); 
	} 
 
	@Configuration 
	public static class Config extends WebMvcConfigurerAdapter 
	{ 
		@Bean 
		public MolgenisLoginController molgenisLoginController() 
		{ 
			return new MolgenisLoginController(resourceFingerprintRegistry()); 
		} 
 
		@Bean 
		public ResourceFingerprintRegistry resourceFingerprintRegistry() 
Contextual code suggestions in your IDE  Get Codota for Java