test_class.declarator: logger = LoggerFactory.getLogger(RunningAverageTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(RunningAverageTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-util/src/test/java/com/cloudhopper/commons/util/RunningAverageTest.java
test_class.identifier: RunningAverageTest
test_case.body: @Test
      public void runningAverage() {
          RunningAverage avg = new RunningAverage(3, 1);
          Assert.assertEquals("0.0", avg.toString());
          avg.add(2);
          Assert.assertEquals("2.0", avg.toString());
          avg.add(3);
          Assert.assertEquals("2.5", avg.toString());
          avg.add(4);
          Assert.assertEquals("3.0", avg.toString());
          avg.add(5);
          // last value should have kicked out the 2 above
          Assert.assertEquals("4.0", avg.toString());
          Assert.assertEquals("4.000", avg.toString(3));
          Assert.assertEquals("4", avg.toString(0));
      }
test_case.class_method_signature: RunningAverageTest.runningAverage()
test_case.full_signature: @Test public void runningAverage()
test_case.identifier: runningAverage
test_case.invocations: assertEquals toString add assertEquals toString add assertEquals toString add assertEquals toString add assertEquals toString assertEquals toString assertEquals toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void runningAverage()
focal_class.declarator: precision
focal_class.modifier: private
focal_class.original_string: private int precision;
focal_class.type: int
focal_class.var_name: precision
focal_class.file: ch-commons-util/src/main/java/com/cloudhopper/commons/util/RunningAverage.java
focal_class.identifier: RunningAverage
focal_class.class_method_signature: RunningAverage.RunningAverage(int size, int precision)
focal_class.full_signature: public  RunningAverage(int size, int precision)
focal_class.identifier: RunningAverage
focal_class.modifiers: public
focal_class.parameters: (int size, int precision)
focal_class.signature:  RunningAverage(int size, int precision)
focal_class.class_method_signature: RunningAverage.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: RunningAverage.toString(int temporaryPrecision)
focal_class.full_signature: public String toString(int temporaryPrecision)
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: (int temporaryPrecision)
focal_class.return: String
focal_class.signature: String toString(int temporaryPrecision)
focal_class.superclass: extends RunningTotal
focal_method.body: public RunningAverage(int size, int precision) {
          super(size);
          this.precision = precision;
      }
focal_method.class_method_signature: RunningAverage.RunningAverage(int size, int precision)
focal_method.full_signature: public  RunningAverage(int size, int precision)
focal_method.identifier: RunningAverage
focal_method.modifiers: public
focal_method.parameters: (int size, int precision)
focal_method.signature:  RunningAverage(int size, int precision)