test_class.declarator: dispatcher
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private CommandDispatcher dispatcher;
test_class.type: CommandDispatcher
test_class.var_name: dispatcher
test_class.file: command/src/test/java/org/geomajas/command/geometry/GeometryConvexHullCommandTest.java
test_class.identifier: GeometryConvexHullCommandTest
test_case.body: @Test
  	public void doesntConvexTest() throws  GeomajasException {
  		List<Geometry> geometries = new ArrayList<Geometry>();
  		geometries.add(createSimplePoly());
  		geometries.add(createTwoPointsLine());
  		geometries.add(createPoint());
  		GeometryConvexHullRequest request = new GeometryConvexHullRequest();
  		request.setGeometries(geometries);
  		GeometryConvexHullResponse response = (GeometryConvexHullResponse) dispatcher.execute(
  				GeometryConvexHullRequest.COMMAND, request, null, "en");
  		List<Geometry> result = response.getGeometries();
  		Assert.assertEquals(3, result.size());
  		Assert.assertEquals(geometries.get(0).getGeometries()[0].getCoordinates().length, 
  							result.get(0).getGeometries()[0].getCoordinates().length);
  		Assert.assertEquals(geometries.get(1).getCoordinates().length, 
  							result.get(1).getCoordinates().length);
  		Assert.assertEquals(geometries.get(2).getCoordinates().length, 
  							result.get(2).getCoordinates().length);
  	}
test_case.class_method_signature: GeometryConvexHullCommandTest.doesntConvexTest()
test_case.full_signature: @Test public void doesntConvexTest()
test_case.identifier: doesntConvexTest
test_case.invocations: add createSimplePoly add createTwoPointsLine add createPoint setGeometries execute getGeometries assertEquals size assertEquals getCoordinates getGeometries get getCoordinates getGeometries get assertEquals getCoordinates get getCoordinates get assertEquals getCoordinates get getCoordinates get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void doesntConvexTest()
focal_class.declarator: converter
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DtoConverterService converter;
focal_class.type: DtoConverterService
focal_class.var_name: converter
focal_class.file: command/src/main/java/org/geomajas/command/geometry/GeometryConvexHullCommand.java
focal_class.identifier: GeometryConvexHullCommand
focal_class.interfaces: implements CommandHasRequest<GeometryConvexHullRequest, GeometryConvexHullResponse>
focal_class.class_method_signature: GeometryConvexHullCommand.getEmptyCommandRequest()
focal_class.full_signature: @Override public GeometryConvexHullRequest getEmptyCommandRequest()
focal_class.identifier: getEmptyCommandRequest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GeometryConvexHullRequest
focal_class.signature: GeometryConvexHullRequest getEmptyCommandRequest()
focal_class.class_method_signature: GeometryConvexHullCommand.getEmptyCommandResponse()
focal_class.full_signature: @Override public GeometryConvexHullResponse getEmptyCommandResponse()
focal_class.identifier: getEmptyCommandResponse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GeometryConvexHullResponse
focal_class.signature: GeometryConvexHullResponse getEmptyCommandResponse()
focal_class.class_method_signature: GeometryConvexHullCommand.execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_class.full_signature: @Override public void execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_class.return: void
focal_class.signature: void execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_method.body: @Override
  	public void execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response) throws Exception {
  		List<org.geomajas.geometry.Geometry> clientGeometries = request.getGeometries();
  		if (clientGeometries == null || clientGeometries.size() == 0) {
  			throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "request");
  		}
  		
  		// Convert to internal, apply ConvexHull and convert back to DTO
  		List<org.geomajas.geometry.Geometry> result = new ArrayList<org.geomajas.geometry.Geometry>();
  		for (Geometry clientGeometry : clientGeometries) {
  			result.add(converter.toDto(new ConvexHull(converter.toInternal(clientGeometry)).getConvexHull()));
  		}
  		response.setGeometries(result);
  	}
focal_method.class_method_signature: GeometryConvexHullCommand.execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_method.full_signature: @Override public void execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_method.identifier: execute
focal_method.invocations: getGeometries size add toDto getConvexHull toInternal setGeometries
focal_method.modifiers: @Override public
focal_method.parameters: (GeometryConvexHullRequest request, GeometryConvexHullResponse response)
focal_method.return: void
focal_method.signature: void execute(GeometryConvexHullRequest request, GeometryConvexHullResponse response)