test_class.file: binary/src/test/java/openlr/binary/LocationCheckTest.java
test_class.identifier: LocationCheckTest
test_case.body: @Test
      public final void testLocationCheck() {
          Mockery context = new Mockery();
          final Line l1 = context.mock(Line.class, "l1");
          final Node sl1 = context.mock(Node.class, "sl1)");
          final Node el1 = context.mock(Node.class, "el1)");
  
          final Line l2 = context.mock(Line.class, "l2");
          final Node sl2 = context.mock(Node.class, "sl2)");
          final Node el2 = context.mock(Node.class, "el2)");
  
          final Line l3 = context.mock(Line.class, "l3");
          final Node sl3 = context.mock(Node.class, "sl3)");
          final Node el3 = context.mock(Node.class, "el3)");
  
  
          context.checking(new Expectations() {
              {
                  allowing(l1).getStartNode();
                  will(returnValue(sl1));
              }
  
              {
                  allowing(l1).getEndNode();
                  will(returnValue(el1));
              }
  
              {
                  allowing(sl1).getLatitudeDeg();
                  will(returnValue(65.69));
              }
  
              {
                  allowing(el1).getLatitudeDeg();
                  will(returnValue(64.69));
              }
          });
  
          context.checking(new Expectations() {
              {
                  allowing(l2).getStartNode();
                  will(returnValue(sl2));
              }
  
              {
                  allowing(l2).getEndNode();
                  will(returnValue(el2));
              }
  
              {
                  allowing(sl2).getLatitudeDeg();
                  will(returnValue(66.00));
              }
  
              {
                  allowing(el2).getLatitudeDeg();
                  will(returnValue(64.69));
              }
          });
  
          context.checking(new Expectations() {
              {
                  allowing(l3).getStartNode();
                  will(returnValue(sl3));
              }
  
              {
                  allowing(l3).getEndNode();
                  will(returnValue(el3));
              }
  
              {
                  allowing(sl3).getLatitudeDeg();
                  will(returnValue(66.00));
              }
  
              {
                  allowing(el3).getLatitudeDeg();
                  will(returnValue(70.0));
              }
          });
  
          List<Line> lines1 = new ArrayList<Line>();
          lines1.add(l1);
          int value1 = LocationCheck.calculateMaxDistanceFromPath(lines1);
          assertEquals(value1, 15000);
  
          List<Line> lines2 = new ArrayList<Line>();
          lines2.add(l2);
          int value2 = LocationCheck.calculateMaxDistanceFromPath(lines2);
          assertEquals(value2, 14820);
  
          List<Line> lines3 = new ArrayList<Line>();
          lines3.add(l3);
          int value3 = LocationCheck.calculateMaxDistanceFromPath(lines3);
          assertEquals(value3, 12462);
  
          List<Line> lines4 = new ArrayList<Line>();
          lines4.add(l2);
          lines4.add(l3);
          int value4 = LocationCheck.calculateMaxDistanceFromPath(lines4);
          assertEquals(value4, 12462);
      }
test_case.class_method_signature: LocationCheckTest.testLocationCheck()
test_case.full_signature: @Test public final void testLocationCheck()
test_case.identifier: testLocationCheck
test_case.invocations: mock mock mock mock mock mock mock mock mock checking getStartNode allowing will returnValue getEndNode allowing will returnValue getLatitudeDeg allowing will returnValue getLatitudeDeg allowing will returnValue checking getStartNode allowing will returnValue getEndNode allowing will returnValue getLatitudeDeg allowing will returnValue getLatitudeDeg allowing will returnValue checking getStartNode allowing will returnValue getEndNode allowing will returnValue getLatitudeDeg allowing will returnValue getLatitudeDeg allowing will returnValue add calculateMaxDistanceFromPath assertEquals add calculateMaxDistanceFromPath assertEquals add calculateMaxDistanceFromPath assertEquals add add calculateMaxDistanceFromPath assertEquals
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLocationCheck()
focal_class.declarator: METER_PER_KM = 1000
focal_class.modifier: private static final
focal_class.original_string: private static final int METER_PER_KM = 1000;
focal_class.type: int
focal_class.var_name: METER_PER_KM
focal_class.declarator: LAT_LON_BORDER = 65.69
focal_class.modifier: private static final
focal_class.original_string: private static final double LAT_LON_BORDER = 65.69;
focal_class.type: double
focal_class.var_name: LAT_LON_BORDER
focal_class.declarator: EARTH = 6371
focal_class.modifier: private static final
focal_class.original_string: private static final int EARTH = 6371;
focal_class.type: int
focal_class.var_name: EARTH
focal_class.declarator: MAX_LON_DIFF = 0.999983647
focal_class.modifier: private static final
focal_class.original_string: private static final double MAX_LON_DIFF = 0.999983647;
focal_class.type: double
focal_class.var_name: MAX_LON_DIFF
focal_class.declarator: DEFAULT_DISTANCE = 15000
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_DISTANCE = 15000;
focal_class.type: int
focal_class.var_name: DEFAULT_DISTANCE
focal_class.declarator: RADIANS_FACTOR = 0.0174532925
focal_class.modifier: private static final
focal_class.original_string: private static final double RADIANS_FACTOR = 0.0174532925;
focal_class.type: double
focal_class.var_name: RADIANS_FACTOR
focal_class.file: binary/src/main/java/openlr/binary/LocationCheck.java
focal_class.identifier: LocationCheck
focal_class.class_method_signature: LocationCheck.LocationCheck()
focal_class.full_signature: private  LocationCheck()
focal_class.identifier: LocationCheck
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  LocationCheck()
focal_class.class_method_signature: LocationCheck.calculateMaxDistanceFromPath(final List<? extends Line> lines)
focal_class.full_signature: public static int calculateMaxDistanceFromPath(final List<? extends Line> lines)
focal_class.identifier: calculateMaxDistanceFromPath
focal_class.modifiers: public static
focal_class.parameters: (final List<? extends Line> lines)
focal_class.return: int
focal_class.signature: int calculateMaxDistanceFromPath(final List<? extends Line> lines)
focal_class.class_method_signature: LocationCheck.calculateMaxDistanceFromCoordinates(final List<? extends GeoCoordinates> coords)
focal_class.full_signature: public static int calculateMaxDistanceFromCoordinates(final List<? extends GeoCoordinates> coords)
focal_class.identifier: calculateMaxDistanceFromCoordinates
focal_class.modifiers: public static
focal_class.parameters: (final List<? extends GeoCoordinates> coords)
focal_class.return: int
focal_class.signature: int calculateMaxDistanceFromCoordinates(final List<? extends GeoCoordinates> coords)
focal_class.class_method_signature: LocationCheck.calculateDist(final double maxLat)
focal_class.full_signature: private static int calculateDist(final double maxLat)
focal_class.identifier: calculateDist
focal_class.modifiers: private static
focal_class.parameters: (final double maxLat)
focal_class.return: int
focal_class.signature: int calculateDist(final double maxLat)
focal_class.class_method_signature: LocationCheck.resolveMaximumLatitudeFromPath(final List<? extends Line> lines)
focal_class.full_signature: private static double resolveMaximumLatitudeFromPath(final List<? extends Line> lines)
focal_class.identifier: resolveMaximumLatitudeFromPath
focal_class.modifiers: private static
focal_class.parameters: (final List<? extends Line> lines)
focal_class.return: double
focal_class.signature: double resolveMaximumLatitudeFromPath(final List<? extends Line> lines)
focal_class.class_method_signature: LocationCheck.resolveMaximumLatitudeFromCoordinates(final List<? extends GeoCoordinates> coords)
focal_class.full_signature: private static double resolveMaximumLatitudeFromCoordinates(final List<? extends GeoCoordinates> coords)
focal_class.identifier: resolveMaximumLatitudeFromCoordinates
focal_class.modifiers: private static
focal_class.parameters: (final List<? extends GeoCoordinates> coords)
focal_class.return: double
focal_class.signature: double resolveMaximumLatitudeFromCoordinates(final List<? extends GeoCoordinates> coords)
focal_method.body: private LocationCheck() {
          throw new UnsupportedOperationException();
      }
focal_method.class_method_signature: LocationCheck.LocationCheck()
focal_method.full_signature: private  LocationCheck()
focal_method.identifier: LocationCheck
focal_method.modifiers: private
focal_method.parameters: ()
focal_method.signature:  LocationCheck()