Skip to content

Instantly share code, notes, and snippets.

@FantailIO
Created February 16, 2018 09:18
Show Gist options
  • Save FantailIO/67d70b042bbb818b1986a961a4aed80d to your computer and use it in GitHub Desktop.
Save FantailIO/67d70b042bbb818b1986a961a4aed80d to your computer and use it in GitHub Desktop.
First cut of a unit test for the Location service
package io.fantail.location.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class LocationServiceTest {
private LocationService locationService;
@Before
public void setup() {
locationService = new LocationService();
}
@Test
public void testGetByValidId() {
Assert.assertNotNull(locationService.getLocation("ValidID"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment