test_class.declarator: DELTA = 1e-20
test_class.modifier: private static final
test_class.original_string: private static final double DELTA = 1e-20;
test_class.type: double
test_class.var_name: DELTA
test_class.file: plugin/geocoder/geocoder/src/test/java/org/geomajas/plugin/geocoder/service/CombineUnionServiceTest.java
test_class.identifier: CombineUnionServiceTest
test_case.body: @Test
  	public void testCombine() throws Exception {
  		Envelope e1 = new Envelope(10, 40, 10, 30);
  		GetLocationResult glr1 = new GetLocationResult();
  		glr1.setEnvelope(e1);
  		Envelope e2 = new Envelope(20, 35, 25, 50);
  		GetLocationResult glr2 = new GetLocationResult();
  		glr2.setEnvelope(e2);
  		List<GetLocationResult> list = new ArrayList<GetLocationResult>();
  		list.add(glr1);
  		list.add(glr2);
  
  		CombineResultService cis = new CombineUnionService();
  		Envelope res = cis.combine(list);
  		Assert.assertEquals(10.0, res.getMinX(), DELTA);
  		Assert.assertEquals(10.0, res.getMinY(), DELTA);
  		Assert.assertEquals(40.0, res.getMaxX(), DELTA);
  		Assert.assertEquals(50.0, res.getMaxY(), DELTA);
  	}
test_case.class_method_signature: CombineUnionServiceTest.testCombine()
test_case.full_signature: @Test public void testCombine()
test_case.identifier: testCombine
test_case.invocations: setEnvelope setEnvelope add add combine assertEquals getMinX assertEquals getMinY assertEquals getMaxX assertEquals getMaxY
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCombine()
focal_class.file: plugin/geocoder/geocoder/src/main/java/org/geomajas/plugin/geocoder/service/CombineUnionService.java
focal_class.identifier: CombineUnionService
focal_class.interfaces: implements CombineResultService
focal_class.class_method_signature: CombineUnionService.combine(List<GetLocationResult> results)
focal_class.full_signature: public Envelope combine(List<GetLocationResult> results)
focal_class.identifier: combine
focal_class.modifiers: public
focal_class.parameters: (List<GetLocationResult> results)
focal_class.return: Envelope
focal_class.signature: Envelope combine(List<GetLocationResult> results)
focal_method.body: public Envelope combine(List<GetLocationResult> results) {
  		Envelope result = null;
  		for (GetLocationResult add : results) {
  			Envelope envelope = add.getEnvelope();
  			if (null == result) {
  				result = envelope;
  			} else {
  				result.expandToInclude(envelope);
  			}
  		}
  		return result;
  	}
focal_method.class_method_signature: CombineUnionService.combine(List<GetLocationResult> results)
focal_method.full_signature: public Envelope combine(List<GetLocationResult> results)
focal_method.identifier: combine
focal_method.invocations: getEnvelope expandToInclude
focal_method.modifiers: public
focal_method.parameters: (List<GetLocationResult> results)
focal_method.return: Envelope
focal_method.signature: Envelope combine(List<GetLocationResult> results)