ApiAuthAnnotationConfig { public void setAllowCookieAuthIfSpecified(AnnotationBoolean allowCookieAuth) { if (allowCookieAuth == AnnotationBoolean.TRUE) { config.setAllowCookieAuth(true); } else if (allowCookieAuth == AnnotationBoolean.FALSE) { config.setAllowCookieAuth(false); } } ApiAuthAnnotationConfig(ApiAuthConfig config); ApiAuthConfig getConfig(); void setAllowCookieAuthIfSpecified(AnnotationBoolean allowCookieAuth); void setBlockedRegionsIfNotEmpty(String[] blockedRegions);  }
@Test public void testSetAllowCookieAuthIfSpecified() { annotationConfig.setAllowCookieAuthIfSpecified(AnnotationBoolean.TRUE); assertEquals(true, config.getAllowCookieAuth()); }
@Test public void testSetAllowCookieAuthIfSpecified_unspecified() { annotationConfig.setAllowCookieAuthIfSpecified(AnnotationBoolean.UNSPECIFIED); testDefaultConfig(); annotationConfig.setAllowCookieAuthIfSpecified(AnnotationBoolean.TRUE); annotationConfig.setAllowCookieAuthIfSpecified(AnnotationBoolean.UNSPECIFIED); assertEquals(true, config.getAllowCookieAuth()); }