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