test_class.declarator: descriptor
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private JaxrsServiceDescriptor descriptor;
test_class.type: JaxrsServiceDescriptor
test_class.var_name: descriptor
test_class.declarator: config
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Config config;
test_class.type: Config
test_class.var_name: config
test_class.file: gzip/src/test/java/org/microbule/gzip/decorator/GzipDecoratorTest.java
test_class.identifier: GzipDecoratorTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testDecorate() {
          final GzipDecorator decorator = new GzipDecorator();
          assertEquals("gzip", decorator.name());
          decorator.decorate(descriptor, config);
          verify(config).booleanValue("force");
          verify(config).integerValue("threshold");
          verify(descriptor).addFeature(any(GZIPFeature.class));
          verifyNoMoreInteractions(descriptor, config);
      }
test_case.class_method_signature: GzipDecoratorTest.testDecorate()
test_case.full_signature: @Test public void testDecorate()
test_case.identifier: testDecorate
test_case.invocations: assertEquals name decorate booleanValue verify integerValue verify addFeature verify any verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDecorate()
focal_class.declarator: THRESHOLD_PROP = "threshold"
focal_class.modifier: public static final
focal_class.original_string: public static final String THRESHOLD_PROP = "threshold";
focal_class.type: String
focal_class.var_name: THRESHOLD_PROP
focal_class.declarator: FORCE_PROP = "force"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORCE_PROP = "force";
focal_class.type: String
focal_class.var_name: FORCE_PROP
focal_class.declarator: DEFAULT_TRESHOLD = 1024
focal_class.modifier: public static final
focal_class.original_string: public static final int DEFAULT_TRESHOLD = 1024;
focal_class.type: int
focal_class.var_name: DEFAULT_TRESHOLD
focal_class.file: gzip/src/main/java/org/microbule/gzip/decorator/GzipDecorator.java
focal_class.identifier: GzipDecorator
focal_class.interfaces: implements JaxrsServerDecorator, JaxrsProxyDecorator
focal_class.class_method_signature: GzipDecorator.decorate(JaxrsServiceDescriptor descriptor, Config config)
focal_class.full_signature: @Override public void decorate(JaxrsServiceDescriptor descriptor, Config config)
focal_class.identifier: decorate
focal_class.modifiers: @Override public
focal_class.parameters: (JaxrsServiceDescriptor descriptor, Config config)
focal_class.return: void
focal_class.signature: void decorate(JaxrsServiceDescriptor descriptor, Config config)
focal_class.class_method_signature: GzipDecorator.name()
focal_class.full_signature: @Override public String name()
focal_class.identifier: name
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String name()
focal_method.body: @Override
      public void decorate(JaxrsServiceDescriptor descriptor, Config config) {
          final GZIPFeature feature = new GZIPFeature();
          feature.setForce(config.booleanValue(FORCE_PROP).orElse(Boolean.FALSE));
          feature.setThreshold(config.integerValue(THRESHOLD_PROP).orElse(DEFAULT_TRESHOLD));
          descriptor.addFeature(feature);
      }
focal_method.class_method_signature: GzipDecorator.decorate(JaxrsServiceDescriptor descriptor, Config config)
focal_method.full_signature: @Override public void decorate(JaxrsServiceDescriptor descriptor, Config config)
focal_method.identifier: decorate
focal_method.invocations: setForce orElse booleanValue setThreshold orElse integerValue addFeature
focal_method.modifiers: @Override public
focal_method.parameters: (JaxrsServiceDescriptor descriptor, Config config)
focal_method.return: void
focal_method.signature: void decorate(JaxrsServiceDescriptor descriptor, Config config)