@Test public void testVerifyCommunitySetMatchExprs() { Configuration c = new Configuration("c", ConfigurationFormat.CISCO_IOS); c.setCommunitySetMatchExprs( ImmutableMap.of("referenceToUndefined", new CommunitySetMatchExprReference("undefined"))); CommunityStructuresVerifier v = new CommunityStructuresVerifier(c); _thrown.expect(VendorConversionException.class); _thrown.expectMessage(containsString("Undefined reference")); v.verifyCommunitySetMatchExprs(); }
@VisibleForTesting void verifyCommunitySetMatchExprs() { _ctx._communitySetMatchExprs.values().stream() .forEach(e -> e.accept(COMMUNITY_SET_MATCH_EXPR_VERIFIER, _ctx)); }
CommunityStructuresVerifier { @VisibleForTesting void verifyCommunitySetMatchExprs() { _ctx._communitySetMatchExprs.values().stream() .forEach(e -> e.accept(COMMUNITY_SET_MATCH_EXPR_VERIFIER, _ctx)); } }
CommunityStructuresVerifier { @VisibleForTesting void verifyCommunitySetMatchExprs() { _ctx._communitySetMatchExprs.values().stream() .forEach(e -> e.accept(COMMUNITY_SET_MATCH_EXPR_VERIFIER, _ctx)); } @VisibleForTesting  CommunityStructuresVerifier(Configuration c); }
CommunityStructuresVerifier { @VisibleForTesting void verifyCommunitySetMatchExprs() { _ctx._communitySetMatchExprs.values().stream() .forEach(e -> e.accept(COMMUNITY_SET_MATCH_EXPR_VERIFIER, _ctx)); } @VisibleForTesting  CommunityStructuresVerifier(Configuration c); static void verify(Configuration configuration); }
CommunityStructuresVerifier { @VisibleForTesting void verifyCommunitySetMatchExprs() { _ctx._communitySetMatchExprs.values().stream() .forEach(e -> e.accept(COMMUNITY_SET_MATCH_EXPR_VERIFIER, _ctx)); } @VisibleForTesting  CommunityStructuresVerifier(Configuration c); static void verify(Configuration configuration);  }