src/test/java/com/dimitri/app/CalculatorApplicationTests.java
/**
	 * Tests manual login using formLogin() method.
	 * @throws Exception if the response is not 302 or if the redirected url is not root.
	 */
Tests manual login using formLogin() method.
@throws Exception if the response is not 302 or if the redirected url is not root.
Tests manual login using formLogin () method . @throws Exception if the response is not 302 or if the redirected url is not root .
@Test
	public void testManualLogin() throws Exception {
		this.mockMvc.perform(formLogin().user("user").password("password"))
		.andExpect(status().is3xxRedirection())
		.andExpect(redirectedUrl("/"));
	}
@ Test public void testManualLogin ( ) throws Exception { this . mockMvc . perform ( formLogin ( ) . user ( "user" ) . password ( "password" ) ) . andExpect ( status ( ) . is3xxRedirection ( ) ) . andExpect ( redirectedUrl ( "/" ) ) ; }
Tests manual login using formLogin() method.
Tests manual login using formLogin () method .