test_class.file: code/src/test/java/com/googlecode/cqengine/quantizer/BigDecimalQuantizerTest.java
test_class.identifier: BigDecimalQuantizerTest
test_case.body: @Test
      public void testWithCompressionFactor_1() throws Exception {
          Quantizer<BigDecimal> quantizer = BigDecimalQuantizer.withCompressionFactor(1);
          // Note: comparing using toString, as double comparison with epsilon would not distinguish 0.0 from -0.0...
          Assert.assertEquals("0", quantizer.getQuantizedValue(BigDecimal.valueOf(0.0)).toString());
          Assert.assertEquals("4", quantizer.getQuantizedValue(BigDecimal.valueOf(4.2)).toString());
          Assert.assertEquals("5", quantizer.getQuantizedValue(BigDecimal.valueOf(5.0)).toString());
          Assert.assertEquals("9", quantizer.getQuantizedValue(BigDecimal.valueOf(9.9)).toString());
          Assert.assertEquals("11", quantizer.getQuantizedValue(BigDecimal.valueOf(11.3)).toString());
          Assert.assertEquals("0", quantizer.getQuantizedValue(BigDecimal.valueOf(-0.0)).toString());
          Assert.assertEquals("-4", quantizer.getQuantizedValue(BigDecimal.valueOf(-4.2)).toString());
          Assert.assertEquals("-5", quantizer.getQuantizedValue(BigDecimal.valueOf(-5.0)).toString());
          Assert.assertEquals("-9", quantizer.getQuantizedValue(BigDecimal.valueOf(-9.9)).toString());
          Assert.assertEquals("-11", quantizer.getQuantizedValue(BigDecimal.valueOf(-11.3)).toString());
      }
test_case.class_method_signature: BigDecimalQuantizerTest.testWithCompressionFactor_1()
test_case.full_signature: @Test public void testWithCompressionFactor_1()
test_case.identifier: testWithCompressionFactor_1
test_case.invocations: withCompressionFactor assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf assertEquals toString getQuantizedValue valueOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWithCompressionFactor_1()
focal_class.file: code/src/main/java/com/googlecode/cqengine/quantizer/BigDecimalQuantizer.java
focal_class.identifier: BigDecimalQuantizer
focal_class.class_method_signature: BigDecimalQuantizer.BigDecimalQuantizer()
focal_class.full_signature:   BigDecimalQuantizer()
focal_class.identifier: BigDecimalQuantizer
focal_class.parameters: ()
focal_class.signature:  BigDecimalQuantizer()
focal_class.class_method_signature: BigDecimalQuantizer.withCompressionFactor(int compressionFactor)
focal_class.full_signature: public static Quantizer<BigDecimal> withCompressionFactor(int compressionFactor)
focal_class.identifier: withCompressionFactor
focal_class.modifiers: public static
focal_class.parameters: (int compressionFactor)
focal_class.return: Quantizer<BigDecimal>
focal_class.signature: Quantizer<BigDecimal> withCompressionFactor(int compressionFactor)
focal_method.body: public static Quantizer<BigDecimal> withCompressionFactor(int compressionFactor) {
          return compressionFactor < 2 ? new TruncatingQuantizer() : new TruncatingAndCompressingQuantizer(compressionFactor);
      }
focal_method.class_method_signature: BigDecimalQuantizer.withCompressionFactor(int compressionFactor)
focal_method.full_signature: public static Quantizer<BigDecimal> withCompressionFactor(int compressionFactor)
focal_method.identifier: withCompressionFactor
focal_method.modifiers: public static
focal_method.parameters: (int compressionFactor)
focal_method.return: Quantizer<BigDecimal>
focal_method.signature: Quantizer<BigDecimal> withCompressionFactor(int compressionFactor)