src/test/java/com/squareup/connect/api/LocationsApiTest.java
@Test
    public void listLocationsTest() throws ApiException {
        ListLocationsResponse response = api.listLocations();
        Assert.assertEquals(accounts.get("US-Prod-Sandbox").locationId, response.getLocations().get(0).getId());
    }
/**
     * ListLocations
     *
     * Provides the details for all of a business&#39;s locations.  Most other Connect API endpoints have a required &#x60;location_id&#x60; path parameter. The &#x60;id&#x60; field of the [&#x60;Location&#x60;](#type-location) objects returned by this endpoint correspond to that &#x60;location_id&#x60; parameter.
     *
     * @throws ApiException
     *          if the Api call fails
     */
ListLocations
Provides the details for all of a business's locations.  Most other Connect API endpoints have a required `location_id` path parameter.

@throws ApiException
if the Api call fails
ListLocations Provides the details for all of a business ' s locations . Most other Connect API endpoints have a required ` location_id ` path parameter . @throws ApiException if the Api call fails
@Test
    public void listLocationsTest() throws ApiException {
        ListLocationsResponse response = api.listLocations();
        Assert.assertEquals(accounts.get("US-Prod-Sandbox").locationId, response.getLocations().get(0).getId());
    }
@ Test public void listLocationsTest ( ) throws ApiException { ListLocationsResponse response = api . listLocations ( ) ; Assert . assertEquals ( accounts . get ( "US-Prod-Sandbox" ) . locationId , response . getLocations ( ) . get ( 0 ) . getId ( ) ) ; }
ListLocations
 Provides the details for all of a business&#39;s locations.
ListLocations Provides the details for all of a business&#39 ; s locations .