/** * Expand the origination space for this prefix * * @param space {@link PrefixSpace} to add */ public void addToOriginationSpace(PrefixSpace space) { _originationSpace.addSpace(space); }
@Test public void addSpaceTest() { PrefixRange range = PrefixRange.fromString("100.0.0.0/32"); _ps.addSpace(new PrefixSpace(range)); assertThat(_ps.isEmpty(), equalTo(false)); assertThat(_ps.containsPrefixRange(range), equalTo(true)); }