Index extends AbstractConfiguration<IndexInfo> implements RegionScoped { @Override public Links getLinks() { String regionName = getRegionName(); if (StringUtils.isBlank(regionName)) { return new Links(null, INDEXES); } Links links = new Links(getId(), Region.REGION_CONFIG_ENDPOINT + "/" + regionName + INDEXES); links.addLink("region", Region.REGION_CONFIG_ENDPOINT + "/" + regionName); return links; }  String getName(); void setName(String name); String getExpression(); void setExpression(String expression); String getRegionPath(); void setRegionPath(String regionPath); IndexType getIndexType(); void setIndexType(IndexType indexType); @JsonIgnore String getRegionName(); @Override @JsonIgnore String getId(); @Override Links getLinks(); @Override boolean equals(Object o); @Override int hashCode(); static final String INDEXES; }
@Test public void getEndPoint_self_isNull() { assertSoftly(softly -> { softly.assertThat(index.getLinks().getSelf()).as("empty index config").isNull(); }); }