test_class.declarator: metric = mock(Metric.class)
test_class.modifier: private
test_class.original_string: private Metric metric = mock(Metric.class);
test_class.type: Metric
test_class.var_name: metric
test_class.declarator: archiausPropertyFactory = mock(DynamicPropertyFactory.class)
test_class.modifier: private final static
test_class.original_string: private final static DynamicPropertyFactory archiausPropertyFactory = mock(DynamicPropertyFactory.class);
test_class.type: DynamicPropertyFactory
test_class.var_name: archiausPropertyFactory
test_class.declarator: DYNAMIC_BOOLEAN_TRUE = mock(DynamicBooleanProperty.class)
test_class.modifier: private static final
test_class.original_string: private static final DynamicBooleanProperty DYNAMIC_BOOLEAN_TRUE = mock(DynamicBooleanProperty.class);
test_class.type: DynamicBooleanProperty
test_class.var_name: DYNAMIC_BOOLEAN_TRUE
test_class.declarator: DYNAMIC_BOOLEAN_FALSE = mock(DynamicBooleanProperty.class)
test_class.modifier: private static final
test_class.original_string: private static final DynamicBooleanProperty DYNAMIC_BOOLEAN_FALSE = mock(DynamicBooleanProperty.class);
test_class.type: DynamicBooleanProperty
test_class.var_name: DYNAMIC_BOOLEAN_FALSE
test_class.file: hystrix-contrib/hystrix-codahale-metrics-publisher/src/test/java/com/netflix/hystrix/contrib/codahalemetricspublisher/ConfigurableCodaHaleMetricFilterTest.java
test_class.identifier: ConfigurableCodaHaleMetricFilterTest
test_case.body: @Test
      public void testMetricNotConfiguredInFilterWithFilterDisabled()
      {
          when(archiausPropertyFactory.getBooleanProperty(eq("filter.graphite.metrics"), any(Boolean.class))).thenReturn(DYNAMIC_BOOLEAN_FALSE);
          ConfigurableCodaHaleMetricFilter filter = new ConfigurableCodaHaleMetricFilter(archiausPropertyFactory);
          assertTrue(filter.matches("this.metric.is.not.allowed", metric));
      }
test_case.class_method_signature: ConfigurableCodaHaleMetricFilterTest.testMetricNotConfiguredInFilterWithFilterDisabled()
test_case.full_signature: @Test public void testMetricNotConfiguredInFilterWithFilterDisabled()
test_case.identifier: testMetricNotConfiguredInFilterWithFilterDisabled
test_case.invocations: thenReturn when getBooleanProperty eq any assertTrue matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMetricNotConfiguredInFilterWithFilterDisabled()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(ConfigurableCodaHaleMetricFilter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(ConfigurableCodaHaleMetricFilter.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: archaiusPropertyFactory
focal_class.modifier: private
focal_class.original_string: private DynamicPropertyFactory archaiusPropertyFactory;
focal_class.type: DynamicPropertyFactory
focal_class.var_name: archaiusPropertyFactory
focal_class.file: hystrix-contrib/hystrix-codahale-metrics-publisher/src/main/java/com/netflix/hystrix/contrib/codahalemetricspublisher/ConfigurableCodaHaleMetricFilter.java
focal_class.identifier: ConfigurableCodaHaleMetricFilter
focal_class.interfaces: implements MetricFilter
focal_class.class_method_signature: ConfigurableCodaHaleMetricFilter.ConfigurableCodaHaleMetricFilter(DynamicPropertyFactory archaiusPropertyFactory)
focal_class.full_signature: public  ConfigurableCodaHaleMetricFilter(DynamicPropertyFactory archaiusPropertyFactory)
focal_class.identifier: ConfigurableCodaHaleMetricFilter
focal_class.modifiers: public
focal_class.parameters: (DynamicPropertyFactory archaiusPropertyFactory)
focal_class.signature:  ConfigurableCodaHaleMetricFilter(DynamicPropertyFactory archaiusPropertyFactory)
focal_class.class_method_signature: ConfigurableCodaHaleMetricFilter.matches(String s, Metric metric)
focal_class.full_signature: @Override public boolean matches(String s, Metric metric)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (String s, Metric metric)
focal_class.return: boolean
focal_class.signature: boolean matches(String s, Metric metric)
focal_class.class_method_signature: ConfigurableCodaHaleMetricFilter.isFilterEnabled()
focal_class.full_signature: protected boolean isFilterEnabled()
focal_class.identifier: isFilterEnabled
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFilterEnabled()
focal_method.body: @Override
      public boolean matches(String s, Metric metric) {
  
          if (!isFilterEnabled())
          {
              return true;
          }
  
          boolean matchesFilter = archaiusPropertyFactory.getBooleanProperty(s, false).get();
  
          LOGGER.debug("Does metric [{}] match filter? [{}]",s,matchesFilter);
  
          return matchesFilter;
      }
focal_method.class_method_signature: ConfigurableCodaHaleMetricFilter.matches(String s, Metric metric)
focal_method.full_signature: @Override public boolean matches(String s, Metric metric)
focal_method.identifier: matches
focal_method.invocations: isFilterEnabled get getBooleanProperty debug
focal_method.modifiers: @Override public
focal_method.parameters: (String s, Metric metric)
focal_method.return: boolean
focal_method.signature: boolean matches(String s, Metric metric)