Code example for Address

Methods: getAddressLine, getAdminArea, getLocality, getPostalCode

0
	public void testStation1() { 
		Station station = StationManager.get("DELN");
		assertEquals("El Cerrito del Norte", station.getName());
		 
		Address address = station.getAddress();
		assertEquals("6400 Cutting Blvd.", address.getAddressLine(0));
		assertEquals("El Cerrito", address.getLocality());
		assertEquals("CA", address.getAdminArea());
		assertEquals("94530", address.getPostalCode());
		 
		Location loc = station.getLocation();
		assertEquals(37.9, loc.getLatitude(), 0.09);
		assertEquals(-122.3, loc.getLongitude(), 0.09);
	} 
	 
	 
	public void testStationFavorites() { 
		 
		Station station = StationManager.get("LAKE");
		assertNotNull(station);