@Test public void readServiceIdentifierWithVersion() throws Exception { ServiceId id = parseServiceId( fileToType("serviceid-version.xml", SERVICE, XRoadServiceIdentifierType.class)); assertEquals("EE", id.getXRoadInstance()); assertEquals("BUSINESS", id.getMemberClass()); assertEquals("JODA", id.getMemberCode()); assertEquals("getState", id.getServiceCode()); assertEquals("SERVICE:EE/BUSINESS/JODA/getState/v1", id.toString()); assertEquals("v1", id.getServiceVersion()); }
static ServiceId parseServiceId(XRoadIdentifierType v) { return ServiceId.create(v.getXRoadInstance(), v.getMemberClass(), v.getMemberCode(), v.getSubsystemCode(), v.getServiceCode(), v.getServiceVersion()); }
IdentifierTypeConverter { static ServiceId parseServiceId(XRoadIdentifierType v) { return ServiceId.create(v.getXRoadInstance(), v.getMemberClass(), v.getMemberCode(), v.getSubsystemCode(), v.getServiceCode(), v.getServiceVersion()); } }
IdentifierTypeConverter { static ServiceId parseServiceId(XRoadIdentifierType v) { return ServiceId.create(v.getXRoadInstance(), v.getMemberClass(), v.getMemberCode(), v.getSubsystemCode(), v.getServiceCode(), v.getServiceVersion()); } private  IdentifierTypeConverter(); }
IdentifierTypeConverter { static ServiceId parseServiceId(XRoadIdentifierType v) { return ServiceId.create(v.getXRoadInstance(), v.getMemberClass(), v.getMemberCode(), v.getSubsystemCode(), v.getServiceCode(), v.getServiceVersion()); } private  IdentifierTypeConverter();  }
IdentifierTypeConverter { static ServiceId parseServiceId(XRoadIdentifierType v) { return ServiceId.create(v.getXRoadInstance(), v.getMemberClass(), v.getMemberCode(), v.getSubsystemCode(), v.getServiceCode(), v.getServiceVersion()); } private  IdentifierTypeConverter();   }