test_class.file: cucumber-mongodb-rest/src/test/java/at/porscheinformatik/cucumber/mongodb/rest/controller/QueryControllerTest.java
test_class.identifier: QueryControllerTest
test_case.body: @Test(dataProvider = "computeNumberOfSkips")
      public void last_ten_with_list_nine(int cursorLength, int lastNrOfDocuments, int expectedNrOfSkips)
      {
          QueryController queryController = new QueryController();
          int actualNrOfSkips = queryController.skipToLast(cursorLength, lastNrOfDocuments);
          assertEquals(actualNrOfSkips, expectedNrOfSkips);
      }
test_case.class_method_signature: QueryControllerTest.last_ten_with_list_nine(int cursorLength, int lastNrOfDocuments, int expectedNrOfSkips)
test_case.full_signature: @Test(dataProvider = "computeNumberOfSkips") public void last_ten_with_list_nine(int cursorLength, int lastNrOfDocuments, int expectedNrOfSkips)
test_case.identifier: last_ten_with_list_nine
test_case.invocations: skipToLast assertEquals
test_case.modifiers: @Test(dataProvider = "computeNumberOfSkips") public
test_case.parameters: (int cursorLength, int lastNrOfDocuments, int expectedNrOfSkips)
test_case.return: void
test_case.signature: void last_ten_with_list_nine(int cursorLength, int lastNrOfDocuments, int expectedNrOfSkips)
focal_class.declarator: mongodb
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private MongoOperations mongodb;
focal_class.type: MongoOperations
focal_class.var_name: mongodb
focal_class.file: cucumber-mongodb-rest/src/main/java/at/porscheinformatik/cucumber/mongodb/rest/controller/QueryController.java
focal_class.identifier: QueryController
focal_class.class_method_signature: QueryController.deleteDocument(@PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.full_signature: @Secured(Roles.ROLE_ADMIN) @RequestMapping(value = "/{collection}/{id}", method = RequestMethod.DELETE) public ResponseEntity<?> deleteDocument(@PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.identifier: deleteDocument
focal_class.modifiers: @Secured(Roles.ROLE_ADMIN) @RequestMapping(value = "/{collection}/{id}", method = RequestMethod.DELETE) public
focal_class.parameters: (@PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.return: ResponseEntity<?>
focal_class.signature: ResponseEntity<?> deleteDocument(@PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.class_method_signature: QueryController.dropWholeCollection(String collection)
focal_class.full_signature: private void dropWholeCollection(String collection)
focal_class.identifier: dropWholeCollection
focal_class.modifiers: private
focal_class.parameters: (String collection)
focal_class.return: void
focal_class.signature: void dropWholeCollection(String collection)
focal_class.class_method_signature: QueryController.find(
          @PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.full_signature: @RequestMapping(value = "/{collection}/{id}", method = RequestMethod.GET) public ResponseEntity<String> find(
          @PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.identifier: find
focal_class.modifiers: @RequestMapping(value = "/{collection}/{id}", method = RequestMethod.GET) public
focal_class.parameters: (
          @PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.return: ResponseEntity<String>
focal_class.signature: ResponseEntity<String> find(
          @PathVariable("collection") String collection,
          @PathVariable("id") String id)
focal_class.class_method_signature: QueryController.find(
          @PathVariable("collection") String collection,
          @RequestParam(value = "version", required = false) String version,
          @RequestParam(value = "category", required = false) String category,
          @RequestParam(value = "limit", required = false) String limit,
          @RequestParam(value = "skip", required = false) String skip,
          @RequestParam(value = "sort", required = false) String sort,
          @RequestParam(value = "last", required = false) String last)
focal_class.full_signature: @RequestMapping(value = "/{collection}/", method = RequestMethod.GET) @ResponseBody public ResponseEntity<String> find(
          @PathVariable("collection") String collection,
          @RequestParam(value = "version", required = false) String version,
          @RequestParam(value = "category", required = false) String category,
          @RequestParam(value = "limit", required = false) String limit,
          @RequestParam(value = "skip", required = false) String skip,
          @RequestParam(value = "sort", required = false) String sort,
          @RequestParam(value = "last", required = false) String last)
focal_class.identifier: find
focal_class.modifiers: @RequestMapping(value = "/{collection}/", method = RequestMethod.GET) @ResponseBody public
focal_class.parameters: (
          @PathVariable("collection") String collection,
          @RequestParam(value = "version", required = false) String version,
          @RequestParam(value = "category", required = false) String category,
          @RequestParam(value = "limit", required = false) String limit,
          @RequestParam(value = "skip", required = false) String skip,
          @RequestParam(value = "sort", required = false) String sort,
          @RequestParam(value = "last", required = false) String last)
focal_class.return: ResponseEntity<String>
focal_class.signature: ResponseEntity<String> find(
          @PathVariable("collection") String collection,
          @RequestParam(value = "version", required = false) String version,
          @RequestParam(value = "category", required = false) String category,
          @RequestParam(value = "limit", required = false) String limit,
          @RequestParam(value = "skip", required = false) String skip,
          @RequestParam(value = "sort", required = false) String sort,
          @RequestParam(value = "last", required = false) String last)
focal_class.class_method_signature: QueryController.getDbCursor(final String collection, final String version, final String category)
focal_class.full_signature: private DBCursor getDbCursor(final String collection, final String version, final String category)
focal_class.identifier: getDbCursor
focal_class.modifiers: private
focal_class.parameters: (final String collection, final String version, final String category)
focal_class.return: DBCursor
focal_class.signature: DBCursor getDbCursor(final String collection, final String version, final String category)
focal_class.class_method_signature: QueryController.skipElements(final String collection, final String skipValue, final String last, final DBCursor dbData)
focal_class.full_signature: private void skipElements(final String collection, final String skipValue, final String last, final DBCursor dbData)
focal_class.identifier: skipElements
focal_class.modifiers: private
focal_class.parameters: (final String collection, final String skipValue, final String last, final DBCursor dbData)
focal_class.return: void
focal_class.signature: void skipElements(final String collection, final String skipValue, final String last, final DBCursor dbData)
focal_class.class_method_signature: QueryController.skipToLast(int cursorLength, int limit)
focal_class.full_signature:  int skipToLast(int cursorLength, int limit)
focal_class.identifier: skipToLast
focal_class.parameters: (int cursorLength, int limit)
focal_class.return: int
focal_class.signature: int skipToLast(int cursorLength, int limit)
focal_class.class_method_signature: QueryController.limitResult(final String limitValue, final DBCursor dbData)
focal_class.full_signature: private void limitResult(final String limitValue, final DBCursor dbData)
focal_class.identifier: limitResult
focal_class.modifiers: private
focal_class.parameters: (final String limitValue, final DBCursor dbData)
focal_class.return: void
focal_class.signature: void limitResult(final String limitValue, final DBCursor dbData)
focal_class.class_method_signature: QueryController.sortResult(final String sort, final DBCursor dbData)
focal_class.full_signature: private void sortResult(final String sort, final DBCursor dbData)
focal_class.identifier: sortResult
focal_class.modifiers: private
focal_class.parameters: (final String sort, final DBCursor dbData)
focal_class.return: void
focal_class.signature: void sortResult(final String sort, final DBCursor dbData)
focal_method.body: int skipToLast(int cursorLength, int limit)
      {
          if (cursorLength > limit)
          {
              return cursorLength - limit;
          }
          return 0;
      }
focal_method.class_method_signature: QueryController.skipToLast(int cursorLength, int limit)
focal_method.full_signature:  int skipToLast(int cursorLength, int limit)
focal_method.identifier: skipToLast
focal_method.parameters: (int cursorLength, int limit)
focal_method.return: int
focal_method.signature: int skipToLast(int cursorLength, int limit)