Skip to content
Snippets Groups Projects
Commit f9b7c8a7 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Refaktorering

parent d90b5fc6
Branches issue-6-rest-api
No related tags found
No related merge requests found
Pipeline #48584 passed
......@@ -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;
......
......@@ -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);
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment