test_class.file: pipeline/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/service/CoordinatorServiceTest.java
test_class.identifier: CoordinatorServiceTest
test_case.body: @Test
      public void shouldGetChunkOfList() {
          CoordinatorService service = new CoordinatorService();
  
          List<DNCWorkCoordinate> coordinateList = new ArrayList<>();
          DNCWorkCoordinate coordinate1 = new DNCWorkCoordinate();
          coordinate1.setPatientId(1);
          DNCWorkCoordinate coordinate2 = new DNCWorkCoordinate();
          coordinate2.setPatientId(12);
          DNCWorkCoordinate coordinate3 = new DNCWorkCoordinate();
          coordinate3.setPatientId(13);
          DNCWorkCoordinate coordinate4 = new DNCWorkCoordinate();
          coordinate4.setPatientId(14);
          DNCWorkCoordinate coordinate5 = new DNCWorkCoordinate();
          coordinate5.setPatientId(15);
          DNCWorkCoordinate coordinate6 = new DNCWorkCoordinate();
          coordinate6.setPatientId(16);
  
          coordinateList.add(coordinate1);
          coordinateList.add(coordinate2);
          coordinateList.add(coordinate3);
          coordinateList.add(coordinate4);
          coordinateList.add(coordinate5);
          coordinateList.add(coordinate6);
  
          List<DNCWorkCoordinate> list = service.getChunkOfList(coordinateList, 1, 3);
  
          assertThat(list.get(0).getPatientId(), equalTo(12L));
          assertThat(list.get(1).getPatientId(), equalTo(13L));
          assertThat(list.get(2).getPatientId(), equalTo(14L));
      }
test_case.class_method_signature: CoordinatorServiceTest.shouldGetChunkOfList()
test_case.full_signature: @Test public void shouldGetChunkOfList()
test_case.identifier: shouldGetChunkOfList
test_case.invocations: setPatientId setPatientId setPatientId setPatientId setPatientId setPatientId add add add add add add getChunkOfList assertThat getPatientId get equalTo assertThat getPatientId get equalTo assertThat getPatientId get equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldGetChunkOfList()
focal_class.declarator: logger = Logger.getLogger(CoordinatorService.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(CoordinatorService.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: NO_COORDINATE_LEFT = "NO_COORDINATE_TO_PROCESS"
focal_class.modifier: public static
focal_class.original_string: public static String NO_COORDINATE_LEFT = "NO_COORDINATE_TO_PROCESS";
focal_class.type: String
focal_class.var_name: NO_COORDINATE_LEFT
focal_class.declarator: coordinatesDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private CoordinatesDao coordinatesDao;
focal_class.type: CoordinatesDao
focal_class.var_name: coordinatesDao
focal_class.declarator: allCoordinates
focal_class.modifier: private
focal_class.original_string: private List<DNCWorkCoordinate> allCoordinates;
focal_class.type: List<DNCWorkCoordinate>
focal_class.var_name: allCoordinates
focal_class.declarator: lastCheckpoint = 0
focal_class.modifier: private
focal_class.original_string: private long lastCheckpoint = 0;
focal_class.type: long
focal_class.var_name: lastCheckpoint
focal_class.file: pipeline/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/service/CoordinatorService.java
focal_class.identifier: CoordinatorService
focal_class.class_method_signature: CoordinatorService.startServer()
focal_class.full_signature: public void startServer()
focal_class.identifier: startServer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startServer()
focal_class.class_method_signature: CoordinatorService.handleRequest(Request request)
focal_class.full_signature: private synchronized String handleRequest(Request request)
focal_class.identifier: handleRequest
focal_class.modifiers: private synchronized
focal_class.parameters: (Request request)
focal_class.return: String
focal_class.signature: String handleRequest(Request request)
focal_class.class_method_signature: CoordinatorService.relevantRequest(Request request)
focal_class.full_signature: private boolean relevantRequest(Request request)
focal_class.identifier: relevantRequest
focal_class.modifiers: private
focal_class.parameters: (Request request)
focal_class.return: boolean
focal_class.signature: boolean relevantRequest(Request request)
focal_class.class_method_signature: CoordinatorService.getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_class.full_signature: public List<DNCWorkCoordinate> getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_class.identifier: getChunkOfList
focal_class.modifiers: public
focal_class.parameters: (List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_class.return: List<DNCWorkCoordinate>
focal_class.signature: List<DNCWorkCoordinate> getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_method.body: public List<DNCWorkCoordinate> getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size) {
          return coordinateList.stream().skip(start).limit(size).collect(Collectors.toList());
      }
focal_method.class_method_signature: CoordinatorService.getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_method.full_signature: public List<DNCWorkCoordinate> getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_method.identifier: getChunkOfList
focal_method.invocations: collect limit skip stream toList
focal_method.modifiers: public
focal_method.parameters: (List<DNCWorkCoordinate> coordinateList, long start, int size)
focal_method.return: List<DNCWorkCoordinate>
focal_method.signature: List<DNCWorkCoordinate> getChunkOfList(List<DNCWorkCoordinate> coordinateList, long start, int size)