Code example for HttpUriRequest

Methods: getURI

0
		setUpLocationsResponse(); 
		gameEngine.sendLocation(currentLocation);
 
		HttpUriRequest request = httpClient.getRequest();
		assertEquals("http://10.0.2.2:3000/players/" + DEVICE_ID + "/update",
				request.getURI().toString());
	} 
	 
	public void testUserAuthenticationRequestIsToTheProperUrl() { 
		setUpAuthenticationResponse(); 
		gameEngine.authenticate();
		 
		HttpUriRequest request = httpClient.getRequest();
		assertEquals("http://10.0.2.2:3000/players/create",
				request.getURI().toString());
	} 
	 
	public void testUserAuthenticationRequestIsAPost() { 
		setUpAuthenticationResponse(); 
		gameEngine.authenticate();