@Test public final void testEmptyLocation() { try { LocationReferenceHolder encLocRef = encodeLocation(td .getEmptyLocation()); assertFalse(encLocRef.isValid()); assertEquals(encLocRef.getReturnCode(), EncoderReturnCode.LOCATION_IS_EMPTY); } catch (Exception e) { fail("Wrong error detected: " + e.getMessage()); } }
@Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); } }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }  }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }  static List<PhysicalEncoder> getPhysicalEncoderServices(); @Override List<LocationReferenceHolder> encodeLocations(
            final OpenLREncoderParameter parameter, final List<Location> loc); @Override LocationReferenceHolder encodeLocation(
            final OpenLREncoderParameter parameter, final Location loc); @Override String getMajorVersion(); @Override String getMinorVersion(); @Override String getPatchVersion(); @Override String getVersion(); }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }  static List<PhysicalEncoder> getPhysicalEncoderServices(); @Override List<LocationReferenceHolder> encodeLocations(
            final OpenLREncoderParameter parameter, final List<Location> loc); @Override LocationReferenceHolder encodeLocation(
            final OpenLREncoderParameter parameter, final Location loc); @Override String getMajorVersion(); @Override String getMinorVersion(); @Override String getPatchVersion(); @Override String getVersion();  }