@Test(expectedExceptions = NullPointerException.class, expectedExceptionsMessageRegExp = "Extender can not be null") public void testCalendarBasedVerificationPolicyCreationNoExtender() { ContextAwarePolicyAdapter.createCalendarPolicy(null); }
public static ContextAwarePolicy createCalendarPolicy(Extender extender) { Util.notNull(extender, "Extender"); return new ContextAwarePolicyAdapter(new CalendarBasedVerificationPolicy(), new PolicyContext(extender.getExtendingService())); }
ContextAwarePolicyAdapter implements ContextAwarePolicy { public static ContextAwarePolicy createCalendarPolicy(Extender extender) { Util.notNull(extender, "Extender"); return new ContextAwarePolicyAdapter(new CalendarBasedVerificationPolicy(), new PolicyContext(extender.getExtendingService())); } }
ContextAwarePolicyAdapter implements ContextAwarePolicy { public static ContextAwarePolicy createCalendarPolicy(Extender extender) { Util.notNull(extender, "Extender"); return new ContextAwarePolicyAdapter(new CalendarBasedVerificationPolicy(), new PolicyContext(extender.getExtendingService())); } private  ContextAwarePolicyAdapter(Policy policy, PolicyContext context); }
ContextAwarePolicyAdapter implements ContextAwarePolicy { public static ContextAwarePolicy createCalendarPolicy(Extender extender) { Util.notNull(extender, "Extender"); return new ContextAwarePolicyAdapter(new CalendarBasedVerificationPolicy(), new PolicyContext(extender.getExtendingService())); } private  ContextAwarePolicyAdapter(Policy policy, PolicyContext context); static ContextAwarePolicy createInternalPolicy(); static ContextAwarePolicy createKeyPolicy(PublicationsHandler handler); static ContextAwarePolicy createPublicationsFilePolicy(PublicationsHandler handler); static ContextAwarePolicy createPublicationsFilePolicy(PublicationsHandler handler, Extender extender); static ContextAwarePolicy createCalendarPolicy(Extender extender); static ContextAwarePolicy createUserProvidedPublicationPolicy(PublicationData publicationData); static ContextAwarePolicy createUserProvidedPublicationPolicy(PublicationData publicationData, Extender extender); static ContextAwarePolicy createDefaultPolicy(PublicationsHandler handler, Extender extender); static ContextAwarePolicy createPolicy(Policy policy, PublicationsHandler handler, KSIExtendingService extendingService); PolicyContext getPolicyContext(); List<Rule> getRules(); String getName(); String getType(); Policy getFallbackPolicy(); void setFallbackPolicy(Policy fallbackPolicy); }
ContextAwarePolicyAdapter implements ContextAwarePolicy { public static ContextAwarePolicy createCalendarPolicy(Extender extender) { Util.notNull(extender, "Extender"); return new ContextAwarePolicyAdapter(new CalendarBasedVerificationPolicy(), new PolicyContext(extender.getExtendingService())); } private  ContextAwarePolicyAdapter(Policy policy, PolicyContext context); static ContextAwarePolicy createInternalPolicy(); static ContextAwarePolicy createKeyPolicy(PublicationsHandler handler); static ContextAwarePolicy createPublicationsFilePolicy(PublicationsHandler handler); static ContextAwarePolicy createPublicationsFilePolicy(PublicationsHandler handler, Extender extender); static ContextAwarePolicy createCalendarPolicy(Extender extender); static ContextAwarePolicy createUserProvidedPublicationPolicy(PublicationData publicationData); static ContextAwarePolicy createUserProvidedPublicationPolicy(PublicationData publicationData, Extender extender); static ContextAwarePolicy createDefaultPolicy(PublicationsHandler handler, Extender extender); static ContextAwarePolicy createPolicy(Policy policy, PublicationsHandler handler, KSIExtendingService extendingService); PolicyContext getPolicyContext(); List<Rule> getRules(); String getName(); String getType(); Policy getFallbackPolicy(); void setFallbackPolicy(Policy fallbackPolicy);  }