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(dependsOnMethods = {"testPOIWithAccesNoOffsets"})
      public final void testResolvePhysicalDecoder() {
  
          final LocationReference mockedLocRef = mockery.mock(
                  LocationReference.class, "locRefDummy");
          mockery.checking(new Expectations() {
              {
                  allowing(mockedLocRef).getDataClass();
                  will(returnValue(Object.class));
              }
          });
          mockery.checking(new Expectations() {
              {
                  allowing(mockedLocRef).getDataIdentifier();
                  will(returnValue(DummyPhysicalDecoderImpl.DATA_IDENTIFIER));
              }
          });
          mockery.checking(new Expectations() {
              {
                  allowing(mockedLocRef).getLocationReferenceData();
                  will(returnValue(null));
              }
          });
          mockery.checking(new Expectations() {
              {
                  allowing(mockedLocRef).getID();
                  will(returnValue(mockedLocRefPoiWithAccess.getID()));
              }
          });
  
          assertNotNull(mockedLocRefPoiWithAccess,
                  "Required input object is null!");
          DummyPhysicalDecoderImpl.setRawLocToReturn(mockedLocRefPoiWithAccess);
  
          try {
              InputStream properties = new FileInputStream(DECODER_PROPERTIES);
              Configuration conf = OpenLRPropertiesReader
                      .loadPropertiesFromStream(properties, true);
              OpenLRDecoder decoder = new OpenLRDecoder();
              // Test two possible methods, the one with the single object ...
              OpenLRDecoderParameter parameter = new OpenLRDecoderParameter.Builder()
                      .with(mockedMapDB)
                      .with(conf).buildParameter();
              Location decLocRef = decoder.decode(parameter, mockedLocRef);
              assertEquals(decLocRef.getID(), mockedLocRefPoiWithAccess.getID());
  
              // ... and the one with the list.
              properties = new FileInputStream(DECODER_PROPERTIES);
              List<Location> decLocRefs = decoder.decode(parameter,
                      Arrays.asList(mockedLocRef));
              assertEquals(decLocRefs.get(0).getID(),
                      mockedLocRefPoiWithAccess.getID());
  
          } catch (OpenLRProcessingException e) {
              fail("Decoding location failed with exception: " + e.getErrorCode(),
                      e);
          } catch (IOException e) {
              fail("Error creating properties stream.", e);
          } finally {
              DummyPhysicalDecoderImpl.setRawLocToReturn(null);
          }
      }
test_case.class_method_signature: OpenLRDecoderTest.testResolvePhysicalDecoder()
test_case.full_signature: @Test(dependsOnMethods = {"testPOIWithAccesNoOffsets"}) public final void testResolvePhysicalDecoder()
test_case.identifier: testResolvePhysicalDecoder
test_case.invocations: mock checking getDataClass allowing will returnValue checking getDataIdentifier allowing will returnValue checking getLocationReferenceData allowing will returnValue checking getID allowing will returnValue getID assertNotNull setRawLocToReturn loadPropertiesFromStream buildParameter with with decode assertEquals getID getID decode asList assertEquals getID get getID fail getErrorCode fail setRawLocToReturn
test_case.modifiers: @Test(dependsOnMethods = {"testPOIWithAccesNoOffsets"}) public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResolvePhysicalDecoder()
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: public static List<PhysicalDecoder> resolvePhysicalDecoder() {
          ServiceLoader<PhysicalDecoder> decoderServices = ServiceLoader
                  .load(PhysicalDecoder.class);
          List<PhysicalDecoder> decoders = new ArrayList<PhysicalDecoder>();
          for (PhysicalDecoder pd : decoderServices) {
              decoders.add(pd);
          }
          return decoders;
      }
focal_method.class_method_signature: OpenLRDecoder.resolvePhysicalDecoder()
focal_method.full_signature: public static List<PhysicalDecoder> resolvePhysicalDecoder()
focal_method.identifier: resolvePhysicalDecoder
focal_method.invocations: load add
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: List<PhysicalDecoder>
focal_method.signature: List<PhysicalDecoder> resolvePhysicalDecoder()