@Test public void testGetLastIndexOfSelfLinkNullHRef() { Self self = new Self(); Optional<String> optId = SW360HalResourceUtility.getLastIndexOfSelfLink(self); assertThat(optId).isNotPresent(); }
public static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj) { if (linkObj != null) { return getLastIndexOfSelfLink(linkObj.getSelf()); } return Optional.empty(); }
SW360HalResourceUtility { public static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj) { if (linkObj != null) { return getLastIndexOfSelfLink(linkObj.getSelf()); } return Optional.empty(); } }
SW360HalResourceUtility { public static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj) { if (linkObj != null) { return getLastIndexOfSelfLink(linkObj.getSelf()); } return Optional.empty(); } private  SW360HalResourceUtility(); }
SW360HalResourceUtility { public static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj) { if (linkObj != null) { return getLastIndexOfSelfLink(linkObj.getSelf()); } return Optional.empty(); } private  SW360HalResourceUtility(); static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj); static Optional<String> getLastIndexOfSelfLink(Self selfObj); }
SW360HalResourceUtility { public static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj) { if (linkObj != null) { return getLastIndexOfSelfLink(linkObj.getSelf()); } return Optional.empty(); } private  SW360HalResourceUtility(); static Optional<String> getLastIndexOfSelfLink(LinkObjects linkObj); static Optional<String> getLastIndexOfSelfLink(Self selfObj);  }