diff --git a/simpleexample2/restapi/src/main/java/simpleex/restapi/LatLongService.java b/simpleexample2/restapi/src/main/java/simpleex/restapi/LatLongsService.java similarity index 92% rename from simpleexample2/restapi/src/main/java/simpleex/restapi/LatLongService.java rename to simpleexample2/restapi/src/main/java/simpleex/restapi/LatLongsService.java index b76fefa5c9242676b304b09cb1937f13ac83e7f4..c3a05eeb21d51b8f1d14e25d8d591976261311c6 100644 --- a/simpleexample2/restapi/src/main/java/simpleex/restapi/LatLongService.java +++ b/simpleexample2/restapi/src/main/java/simpleex/restapi/LatLongsService.java @@ -14,10 +14,10 @@ import javax.ws.rs.core.MediaType; import simpleex.core.LatLong; import simpleex.core.LatLongs; -@Path(LatLongService.LAT_LONG_SERVICE_PATH) -public class LatLongService { +@Path(LatLongsService.LAT_LONG_SERVICE_PATH) +public class LatLongsService { - public static final String LAT_LONG_SERVICE_PATH = "latLong"; + public static final String LAT_LONG_SERVICE_PATH = "latLongs"; @Inject private LatLongs latLongs; diff --git a/simpleexample2/restserver/src/main/java/simpleex/restserver/LatLongConfig.java b/simpleexample2/restserver/src/main/java/simpleex/restserver/LatLongConfig.java index cb37c133bb043195b3ae88d086ff62990baf151e..173d5fcc7885b65a18341cb25f1ed3f1550e432d 100644 --- a/simpleexample2/restserver/src/main/java/simpleex/restserver/LatLongConfig.java +++ b/simpleexample2/restserver/src/main/java/simpleex/restserver/LatLongConfig.java @@ -5,7 +5,7 @@ import org.glassfish.jersey.jackson.JacksonFeature; import org.glassfish.jersey.server.ResourceConfig; import simpleex.core.LatLongs; import simpleex.restapi.LatLongObjectMapperProvider; -import simpleex.restapi.LatLongService; +import simpleex.restapi.LatLongsService; public class LatLongConfig extends ResourceConfig { @@ -17,7 +17,7 @@ public class LatLongConfig extends ResourceConfig { public LatLongConfig(final LatLongs latLongs) { this.latLongs = latLongs; - register(LatLongService.class); + register(LatLongsService.class); register(LatLongObjectMapperProvider.class); register(JacksonFeature.class); diff --git a/simpleexample2/restserver/src/test/java/simpleex/restserver/LatLongsServiceTest.java b/simpleexample2/restserver/src/test/java/simpleex/restserver/LatLongsServiceTest.java index 56b000452e829ede2bc108be1adbb5905b5d3546..c7b8975ccc46da8d49fd2e342cc04063d57e50a6 100644 --- a/simpleexample2/restserver/src/test/java/simpleex/restserver/LatLongsServiceTest.java +++ b/simpleexample2/restserver/src/test/java/simpleex/restserver/LatLongsServiceTest.java @@ -19,11 +19,11 @@ import org.junit.Before; import org.junit.Test; import simpleex.core.LatLong; import simpleex.restapi.LatLongObjectMapperProvider; -import simpleex.restapi.LatLongService; +import simpleex.restapi.LatLongsService; public class LatLongsServiceTest extends SimpleExJerseyTest { - private static final String LAT_LONG_SERVICE_PATH = LatLongService.LAT_LONG_SERVICE_PATH; + private static final String LAT_LONG_SERVICE_PATH = LatLongsService.LAT_LONG_SERVICE_PATH; private ObjectMapper objectMapper;