ApiFrontendLimitsAnnotationConfig { public void setUnregisteredDailyIfSpecified(int unregisteredDaily) { if (unregisteredDaily != Api.UNSPECIFIED_INT) { config.setUnregisteredDaily(unregisteredDaily); } } ApiFrontendLimitsAnnotationConfig(ApiFrontendLimitsConfig config); ApiFrontendLimitsConfig getConfig(); void setUnregisteredUserQpsIfSpecified(int unregisteredUserQps); void setUnregisteredQpsIfSpecified(int unregisteredQps); void setUnregisteredDailyIfSpecified(int unregisteredDaily);  }
@Test public void testSetUnregisteredDailyIfSpecified() { annotationConfig.setUnregisteredDailyIfSpecified(4); assertEquals(4, config.getUnregisteredDaily()); }
@Test public void testSetUnregisteredDailyIfSpecified_unspecified() { annotationConfig.setUnregisteredDailyIfSpecified(Api.UNSPECIFIED_INT); testDefaults(); annotationConfig.setUnregisteredDailyIfSpecified(22); annotationConfig.setUnregisteredDailyIfSpecified(Api.UNSPECIFIED_INT); assertEquals(22, config.getUnregisteredDaily()); }