Ray Milkey
Committed by Gerrit Code Review

Unit tests for applications REST APIs

Change-Id: I4e8360ca9b0ca9eafe1b226b648acfe2b0676caa
...@@ -46,7 +46,7 @@ public class ApplicationsWebResource extends AbstractWebResource { ...@@ -46,7 +46,7 @@ public class ApplicationsWebResource extends AbstractWebResource {
46 46
47 @GET 47 @GET
48 @Path("{name}") 48 @Path("{name}")
49 - public Response getApplication(@PathParam("id") String name) { 49 + public Response getApplication(@PathParam("name") String name) {
50 ApplicationAdminService service = get(ApplicationAdminService.class); 50 ApplicationAdminService service = get(ApplicationAdminService.class);
51 ApplicationId appId = service.getId(name); 51 ApplicationId appId = service.getId(name);
52 return response(service, appId); 52 return response(service, appId);
......
...@@ -23,7 +23,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; ...@@ -23,7 +23,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
23 /** 23 /**
24 * Mock codec context for use in codec unit tests. 24 * Mock codec context for use in codec unit tests.
25 */ 25 */
26 -public final class MockCodecContext implements CodecContext { 26 +public class MockCodecContext implements CodecContext {
27 27
28 private ObjectMapper mapper = new ObjectMapper(); 28 private ObjectMapper mapper = new ObjectMapper();
29 private CodecManager manager = new CodecManager(); 29 private CodecManager manager = new CodecManager();
......