test_class.file: metrics/core/src/test/java/org/microbule/metrics/core/strategy/SlidingWindowTimingStrategyTest.java
test_class.identifier: SlidingWindowTimingStrategyTest
test_class.superclass: extends AbstractTimingStrategyTest
test_case.body: @Test
      public void testCreateTimer() throws ReflectiveOperationException {
          final SlidingWindowTimingStrategy strategy = new SlidingWindowTimingStrategy();
          final Timer timer = strategy.createTimer(new MapConfig());
          SlidingWindowReservoir reservoir = reservoir(timer);
          assertNotNull(reservoir);
          assertEquals("window", strategy.name());
      }
test_case.class_method_signature: SlidingWindowTimingStrategyTest.testCreateTimer()
test_case.full_signature: @Test public void testCreateTimer()
test_case.identifier: testCreateTimer
test_case.invocations: createTimer reservoir assertNotNull assertEquals name
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateTimer()
focal_class.declarator: DEFAULT_SIZE = 1024
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_SIZE = 1024;
focal_class.type: int
focal_class.var_name: DEFAULT_SIZE
focal_class.declarator: SIZE_PROP = "size"
focal_class.modifier: private static final
focal_class.original_string: private static final String SIZE_PROP = "size";
focal_class.type: String
focal_class.var_name: SIZE_PROP
focal_class.file: metrics/core/src/main/java/org/microbule/metrics/core/strategy/SlidingWindowTimingStrategy.java
focal_class.identifier: SlidingWindowTimingStrategy
focal_class.interfaces: implements TimingStrategy
focal_class.class_method_signature: SlidingWindowTimingStrategy.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_class.class_method_signature: SlidingWindowTimingStrategy.createTimer(Config config)
focal_class.full_signature: @Override public Timer createTimer(Config config)
focal_class.identifier: createTimer
focal_class.modifiers: @Override public
focal_class.parameters: (Config config)
focal_class.return: Timer
focal_class.signature: Timer createTimer(Config config)
focal_method.body: @Override
      public Timer createTimer(Config config) {
          return new Timer(new SlidingWindowReservoir(config.integerValue(SIZE_PROP).orElse(DEFAULT_SIZE)));
      }
focal_method.class_method_signature: SlidingWindowTimingStrategy.createTimer(Config config)
focal_method.full_signature: @Override public Timer createTimer(Config config)
focal_method.identifier: createTimer
focal_method.invocations: orElse integerValue
focal_method.modifiers: @Override public
focal_method.parameters: (Config config)
focal_method.return: Timer
focal_method.signature: Timer createTimer(Config config)