test_class.declarator: EXPECTED_NODE_NO_OFFSETS = 5
test_class.modifier: private static final
test_class.original_string: private static final int EXPECTED_NODE_NO_OFFSETS = 5;
test_class.type: int
test_class.var_name: EXPECTED_NODE_NO_OFFSETS
test_class.declarator: mockery = new Mockery()
test_class.modifier: private final
test_class.original_string: private final Mockery mockery = new Mockery();
test_class.type: Mockery
test_class.var_name: mockery
test_class.declarator: td = TestData.getInstance()
test_class.modifier: private
test_class.original_string: private TestData td = TestData.getInstance();
test_class.type: TestData
test_class.var_name: td
test_class.declarator: mockedLocRefPoiWithAccess
test_class.modifier: private
test_class.original_string: private RawLocationReference mockedLocRefPoiWithAccess;
test_class.type: RawLocationReference
test_class.var_name: mockedLocRefPoiWithAccess
test_class.declarator: mockedMapDB
test_class.modifier: private
test_class.original_string: private MapDatabase mockedMapDB;
test_class.type: MapDatabase
test_class.var_name: mockedMapDB
test_class.file: decoder/src/test/java/openlr/decoder/OpenLRDecoderTest.java
test_class.identifier: OpenLRDecoderTest
test_case.body: @Test
      public final void testPOIWithAccesNoOffsets() {
          Location decLocRef = null;
          RawLocationReference inputLocation = null;
          try {
              inputLocation = td.getPWANoOffsets();
              mockedLocRefPoiWithAccess = inputLocation;
  
              OpenLRDecoder decoder = new OpenLRDecoder();
              OpenLRDecoderParameter parameter = new OpenLRDecoderParameter.Builder()
                      .with(mockedMapDB)
                      .with(td.getProperties()).buildParameter();
              decLocRef = decoder.decodeRaw(parameter, inputLocation);
  
          } catch (OpenLRProcessingException e) {
              fail("Decoding location failed with exception: " + e.getErrorCode(),
                      e);
          } catch (InvalidMapDataException e) {
              fail("Decoding location failed with exception",
                      e);
          }
          assertTrue(decLocRef.isValid());
  
          GeoCoordinates inputPoi = inputLocation.getGeoCoordinates();
  
          GeoCoordinates coords = decLocRef.getPointLocation();
  
          assertEquals(coords.getLatitudeDeg(), inputPoi.getLatitudeDeg());
          assertEquals(coords.getLongitudeDeg(), inputPoi.getLongitudeDeg());
  
          // because of the absent offset the access point should be the start
          // Node
          GeoCoordinates accessP = decLocRef.getAccessPoint();
          Node node5 = mockedMapDB.getNode(EXPECTED_NODE_NO_OFFSETS);
          assertEquals(accessP.getLongitudeDeg(), node5.getLongitudeDeg());
          assertEquals(accessP.getLatitudeDeg(), node5.getLatitudeDeg());
  
          assertNotNull(accessP.toString());
      }
test_case.class_method_signature: OpenLRDecoderTest.testPOIWithAccesNoOffsets()
test_case.full_signature: @Test public final void testPOIWithAccesNoOffsets()
test_case.identifier: testPOIWithAccesNoOffsets
test_case.invocations: getPWANoOffsets buildParameter with with getProperties decodeRaw fail getErrorCode fail assertTrue isValid getGeoCoordinates getPointLocation assertEquals getLatitudeDeg getLatitudeDeg assertEquals getLongitudeDeg getLongitudeDeg getAccessPoint getNode assertEquals getLongitudeDeg getLongitudeDeg assertEquals getLatitudeDeg getLatitudeDeg assertNotNull toString
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPOIWithAccesNoOffsets()
focal_class.declarator: LOG = Logger.getLogger(OpenLRDecoder.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(OpenLRDecoder.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: VERSION = VersionHelper.getVersion("decoder")
focal_class.modifier: private final
focal_class.original_string: private final Version VERSION = VersionHelper.getVersion("decoder");
focal_class.type: Version
focal_class.var_name: VERSION
focal_class.file: decoder/src/main/java/openlr/decoder/OpenLRDecoder.java
focal_class.identifier: OpenLRDecoder
focal_class.interfaces: implements openlr.OpenLRDecoder
focal_class.class_method_signature: OpenLRDecoder.resolvePhysicalDecoder()
focal_class.full_signature: public static List<PhysicalDecoder> resolvePhysicalDecoder()
focal_class.identifier: resolvePhysicalDecoder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: List<PhysicalDecoder>
focal_class.signature: List<PhysicalDecoder> resolvePhysicalDecoder()
focal_class.class_method_signature: OpenLRDecoder.decode(final OpenLRDecoderParameter parameter,
                             final LocationReference locRef)
focal_class.full_signature: @Override public Location decode(final OpenLRDecoderParameter parameter,
                             final LocationReference locRef)
focal_class.identifier: decode
focal_class.modifiers: @Override public
focal_class.parameters: (final OpenLRDecoderParameter parameter,
                             final LocationReference locRef)
focal_class.return: Location
focal_class.signature: Location decode(final OpenLRDecoderParameter parameter,
                             final LocationReference locRef)
focal_class.class_method_signature: OpenLRDecoder.decode(final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                              final LocationReference locRef)
focal_class.full_signature: private Location decode(final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                              final LocationReference locRef)
focal_class.identifier: decode
focal_class.modifiers: private
focal_class.parameters: (final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                              final LocationReference locRef)
focal_class.return: Location
focal_class.signature: Location decode(final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                              final LocationReference locRef)
focal_class.class_method_signature: OpenLRDecoder.decode(final OpenLRDecoderParameter parameter,
                                   final List<LocationReference> locRefs)
focal_class.full_signature: @Override public List<Location> decode(final OpenLRDecoderParameter parameter,
                                   final List<LocationReference> locRefs)
focal_class.identifier: decode
focal_class.modifiers: @Override public
focal_class.parameters: (final OpenLRDecoderParameter parameter,
                                   final List<LocationReference> locRefs)
focal_class.return: List<Location>
focal_class.signature: List<Location> decode(final OpenLRDecoderParameter parameter,
                                   final List<LocationReference> locRefs)
focal_class.class_method_signature: OpenLRDecoder.decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_class.full_signature: @Override public List<Location> decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_class.identifier: decodeRaw
focal_class.modifiers: @Override public
focal_class.parameters: (final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_class.return: List<Location>
focal_class.signature: List<Location> decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_class.class_method_signature: OpenLRDecoder.decodeRaw(final OpenLRDecoderParameter parameter,
                                final RawLocationReference rawLocRef)
focal_class.full_signature: @Override public Location decodeRaw(final OpenLRDecoderParameter parameter,
                                final RawLocationReference rawLocRef)
focal_class.identifier: decodeRaw
focal_class.modifiers: @Override public
focal_class.parameters: (final OpenLRDecoderParameter parameter,
                                final RawLocationReference rawLocRef)
focal_class.return: Location
focal_class.signature: Location decodeRaw(final OpenLRDecoderParameter parameter,
                                final RawLocationReference rawLocRef)
focal_class.class_method_signature: OpenLRDecoder.decodeRaw(final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                                 final RawLocationReference rawLocRef)
focal_class.full_signature: private Location decodeRaw(final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                                 final RawLocationReference rawLocRef)
focal_class.identifier: decodeRaw
focal_class.modifiers: private
focal_class.parameters: (final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                                 final RawLocationReference rawLocRef)
focal_class.return: Location
focal_class.signature: Location decodeRaw(final OpenLRDecoderParameter parameter, final OpenLRDecoderProperties properties,
                                 final RawLocationReference rawLocRef)
focal_class.class_method_signature: OpenLRDecoder.resolveRawFormat(
              final LocationReference locRef, final List<PhysicalDecoder> decoders)
focal_class.full_signature: private RawLocationReference resolveRawFormat(
              final LocationReference locRef, final List<PhysicalDecoder> decoders)
focal_class.identifier: resolveRawFormat
focal_class.modifiers: private
focal_class.parameters: (
              final LocationReference locRef, final List<PhysicalDecoder> decoders)
focal_class.return: RawLocationReference
focal_class.signature: RawLocationReference resolveRawFormat(
              final LocationReference locRef, final List<PhysicalDecoder> decoders)
focal_class.class_method_signature: OpenLRDecoder.getMajorVersion()
focal_class.full_signature: @Override public String getMajorVersion()
focal_class.identifier: getMajorVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMajorVersion()
focal_class.class_method_signature: OpenLRDecoder.getMinorVersion()
focal_class.full_signature: @Override public String getMinorVersion()
focal_class.identifier: getMinorVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMinorVersion()
focal_class.class_method_signature: OpenLRDecoder.getPatchVersion()
focal_class.full_signature: @Override public String getPatchVersion()
focal_class.identifier: getPatchVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPatchVersion()
focal_class.class_method_signature: OpenLRDecoder.getVersion()
focal_class.full_signature: @Override public String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_method.body: @Override
      public List<Location> decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
              throws OpenLRProcessingException {
          List<Location> locations = new ArrayList<Location>();
          OpenLRDecoderProperties properties = new OpenLRDecoderProperties(parameter.getConfiguration());
          for (RawLocationReference locRef : locRefs) {
              locations.add(decodeRaw(parameter, properties, locRef));
          }
          return locations;
      }
focal_method.class_method_signature: OpenLRDecoder.decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_method.full_signature: @Override public List<Location> decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_method.identifier: decodeRaw
focal_method.invocations: getConfiguration add decodeRaw
focal_method.modifiers: @Override public
focal_method.parameters: (final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)
focal_method.return: List<Location>
focal_method.signature: List<Location> decodeRaw(final OpenLRDecoderParameter parameter,
                                      final List<RawLocationReference> locRefs)