test_class.declarator: geoServer
test_class.modifier: @Mock
test_class.original_string: @Mock
      GeoServer geoServer;
test_class.type: GeoServer
test_class.var_name: geoServer
test_class.declarator: ctrl
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      ProjController ctrl;
test_class.type: ProjController
test_class.var_name: ctrl
test_class.declarator: mvc
test_class.original_string: MockMvc mvc;
test_class.type: MockMvc
test_class.var_name: mvc
test_class.file: geoserver/webapp/api-composer/src/test/java/com/boundlessgeo/geoserver/api/controllers/ProjControllerTest.java
test_class.identifier: ProjControllerTest
test_case.body: @Test
      public void testGet() throws Exception {
          MvcResult result = mvc.perform(get("/app/api/projections/epsg:3005"))
                  .andExpect(status().isOk())
                  .andExpect(content().contentType(MediaType.APPLICATION_JSON))
                  .andReturn();
  
          JSONObj proj = JSONWrapper.read(result.getResponse().getContentAsString()).toObject();
          assertEquals("EPSG:3005", proj.str("srs"));
          assertNotNull(proj.str("wkt"));
      }
test_case.class_method_signature: ProjControllerTest.testGet()
test_case.full_signature: @Test public void testGet()
test_case.identifier: testGet
test_case.invocations: andReturn andExpect andExpect perform get isOk status contentType content toObject read getContentAsString getResponse assertEquals str assertNotNull str
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGet()
focal_class.file: geoserver/webapp/api-composer/src/main/java/com/boundlessgeo/geoserver/api/controllers/ProjController.java
focal_class.identifier: ProjController
focal_class.class_method_signature: ProjController.ProjController(GeoServer geoServer)
focal_class.full_signature: @Autowired public  ProjController(GeoServer geoServer)
focal_class.identifier: ProjController
focal_class.modifiers: @Autowired public
focal_class.parameters: (GeoServer geoServer)
focal_class.signature:  ProjController(GeoServer geoServer)
focal_class.class_method_signature: ProjController.get(@PathVariable String srs)
focal_class.full_signature: @RequestMapping(value = "/{srs}", method = RequestMethod.GET) public @ResponseBody JSONObj get(@PathVariable String srs)
focal_class.identifier: get
focal_class.modifiers: @RequestMapping(value = "/{srs}", method = RequestMethod.GET) public @ResponseBody
focal_class.parameters: (@PathVariable String srs)
focal_class.return: JSONObj
focal_class.signature: JSONObj get(@PathVariable String srs)
focal_class.class_method_signature: ProjController.recent()
focal_class.full_signature: @RequestMapping(value = "/recent", method = RequestMethod.GET) public @ResponseBody JSONArr recent()
focal_class.identifier: recent
focal_class.modifiers: @RequestMapping(value = "/recent", method = RequestMethod.GET) public @ResponseBody
focal_class.parameters: ()
focal_class.return: JSONArr
focal_class.signature: JSONArr recent()
focal_class.superclass: extends ApiController
focal_method.body: @RequestMapping(value = "/{srs}", method = RequestMethod.GET)
      public @ResponseBody
      JSONObj get(@PathVariable String srs) throws Exception {
          srs = srs.toUpperCase();
  
          CoordinateReferenceSystem crs = null;
          try {
              crs = Proj.get().crs(srs);
          }
          catch(Exception e1) {
              throw new BadRequestException("Bad srs: " + srs, e1);
          }
  
          if (crs == null) {
              throw new NotFoundException("No such projection: " + srs);
          }
  
          return IO.proj(new JSONObj(), crs, srs);
      }
focal_method.class_method_signature: ProjController.get(@PathVariable String srs)
focal_method.full_signature: @RequestMapping(value = "/{srs}", method = RequestMethod.GET) public @ResponseBody JSONObj get(@PathVariable String srs)
focal_method.identifier: get
focal_method.invocations: toUpperCase crs get proj
focal_method.modifiers: @RequestMapping(value = "/{srs}", method = RequestMethod.GET) public @ResponseBody
focal_method.parameters: (@PathVariable String srs)
focal_method.return: JSONObj
focal_method.signature: JSONObj get(@PathVariable String srs)