@Test public void testSetFallbackForDefaultVerificationPolicy_Ok() { DefaultVerificationPolicy policy = new DefaultVerificationPolicy(); policy.setFallbackPolicy(new CalendarBasedVerificationPolicy()); assertNotNull(policy.getFallbackPolicy()); assertEquals(policy.getFallbackPolicy().getClass(), KeyBasedVerificationPolicy.class); assertNotNull(policy.getFallbackPolicy().getFallbackPolicy()); assertEquals(policy.getFallbackPolicy().getFallbackPolicy().getClass(), CalendarBasedVerificationPolicy.class); }
@Override public final void setFallbackPolicy(Policy policy) { if (getFallbackPolicy() != null) { getFallbackPolicy().setFallbackPolicy(policy); } else { super.setFallbackPolicy(policy); } }
DefaultVerificationPolicy extends PublicationsFileBasedVerificationPolicy { @Override public final void setFallbackPolicy(Policy policy) { if (getFallbackPolicy() != null) { getFallbackPolicy().setFallbackPolicy(policy); } else { super.setFallbackPolicy(policy); } } }
DefaultVerificationPolicy extends PublicationsFileBasedVerificationPolicy { @Override public final void setFallbackPolicy(Policy policy) { if (getFallbackPolicy() != null) { getFallbackPolicy().setFallbackPolicy(policy); } else { super.setFallbackPolicy(policy); } } DefaultVerificationPolicy(); }
DefaultVerificationPolicy extends PublicationsFileBasedVerificationPolicy { @Override public final void setFallbackPolicy(Policy policy) { if (getFallbackPolicy() != null) { getFallbackPolicy().setFallbackPolicy(policy); } else { super.setFallbackPolicy(policy); } } DefaultVerificationPolicy(); String getName(); String getType(); @Override final void setFallbackPolicy(Policy policy); }
DefaultVerificationPolicy extends PublicationsFileBasedVerificationPolicy { @Override public final void setFallbackPolicy(Policy policy) { if (getFallbackPolicy() != null) { getFallbackPolicy().setFallbackPolicy(policy); } else { super.setFallbackPolicy(policy); } } DefaultVerificationPolicy(); String getName(); String getType(); @Override final void setFallbackPolicy(Policy policy);  }