test_class.declarator: DELTA = 0.0001
test_class.modifier: public static final
test_class.original_string: public static final double DELTA = 0.0001;
test_class.type: double
test_class.var_name: DELTA
test_class.file: spring-ddd/spring-ddd-bank/src/test/java/de/beuth/knabe/spring_ddd_bank/domain/AmountTest.java
test_class.identifier: AmountTest
test_case.body: @Test
      public void minus(){
          {
              final Amount amount = new Amount(1112223334,99);
              final Amount result = amount.minus(new Amount(1102203304,66));
              assertEquals(10020030.33, result.toDouble(), DELTA);
          }
          {
              final Amount amount = new Amount(100000,0);
              final Amount result = amount.minus(new Amount(0,1));
              assertEquals(99999.99, result.toDouble(), DELTA);
          }
          {
              final Amount max = new Amount(Amount.maxValue());
              final Amount badDelta = new Amount(0,-1);
              try{
                  max.minus(badDelta);
                  fail("Amount.RangeExc expected");
              }catch(Amount.RangeExc expected){}
          }
          {
              final Amount min = new Amount(Amount.minValue());
              final Amount badDelta = new Amount(0,1);
              try{
                  min.minus(badDelta);
                  fail("Amount.RangeExc expected");
              }catch(Amount.RangeExc expected){}
          }
      }
test_case.class_method_signature: AmountTest.minus()
test_case.full_signature: @Test public void minus()
test_case.identifier: minus
test_case.invocations: minus assertEquals toDouble minus assertEquals toDouble maxValue minus fail minValue minus fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void minus()
focal_class.declarator: ZERO = new Amount(0, 0)
focal_class.modifier: public static final
focal_class.original_string: public static final Amount ZERO = new Amount(0, 0);
focal_class.type: Amount
focal_class.var_name: ZERO
focal_class.declarator: cents
focal_class.modifier: private
focal_class.original_string: private long cents;
focal_class.type: long
focal_class.var_name: cents
focal_class.file: spring-ddd/spring-ddd-bank/src/main/java/de/beuth/knabe/spring_ddd_bank/domain/Amount.java
focal_class.identifier: Amount
focal_class.class_method_signature: Amount.maxValue()
focal_class.full_signature: public static double maxValue()
focal_class.identifier: maxValue
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double maxValue()
focal_class.class_method_signature: Amount.minValue()
focal_class.full_signature: public static double minValue()
focal_class.identifier: minValue
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double minValue()
focal_class.class_method_signature: Amount.Amount()
focal_class.full_signature: @SuppressWarnings("unused") private  Amount()
focal_class.identifier: Amount
focal_class.modifiers: @SuppressWarnings("unused") private
focal_class.parameters: ()
focal_class.signature:  Amount()
focal_class.class_method_signature: Amount.Amount(final int euros, final int cents)
focal_class.full_signature: public  Amount(final int euros, final int cents)
focal_class.identifier: Amount
focal_class.modifiers: public
focal_class.parameters: (final int euros, final int cents)
focal_class.signature:  Amount(final int euros, final int cents)
focal_class.class_method_signature: Amount.Amount(final double euros)
focal_class.full_signature: public  Amount(final double euros)
focal_class.identifier: Amount
focal_class.modifiers: public
focal_class.parameters: (final double euros)
focal_class.signature:  Amount(final double euros)
focal_class.class_method_signature: Amount.getCents()
focal_class.full_signature: public long getCents()
focal_class.identifier: getCents
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCents()
focal_class.class_method_signature: Amount.plus(final Amount other)
focal_class.full_signature: public Amount plus(final Amount other)
focal_class.identifier: plus
focal_class.modifiers: public
focal_class.parameters: (final Amount other)
focal_class.return: Amount
focal_class.signature: Amount plus(final Amount other)
focal_class.class_method_signature: Amount.equals(final Object other)
focal_class.full_signature: @Override public boolean equals(final Object other)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object other)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object other)
focal_class.class_method_signature: Amount.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Amount.compareTo(final Amount other)
focal_class.full_signature: public int compareTo(final Amount other)
focal_class.identifier: compareTo
focal_class.modifiers: public
focal_class.parameters: (final Amount other)
focal_class.return: int
focal_class.signature: int compareTo(final Amount other)
focal_class.class_method_signature: Amount.minus(final Amount other)
focal_class.full_signature: public Amount minus(final Amount other)
focal_class.identifier: minus
focal_class.modifiers: public
focal_class.parameters: (final Amount other)
focal_class.return: Amount
focal_class.signature: Amount minus(final Amount other)
focal_class.class_method_signature: Amount.times(final double factor)
focal_class.full_signature: public Amount times(final double factor)
focal_class.identifier: times
focal_class.modifiers: public
focal_class.parameters: (final double factor)
focal_class.return: Amount
focal_class.signature: Amount times(final double factor)
focal_class.class_method_signature: Amount.toDouble()
focal_class.full_signature: public double toDouble()
focal_class.identifier: toDouble
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double toDouble()
focal_class.class_method_signature: Amount.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public Amount minus(final Amount other) {
  		final double result = this.toDouble() - other.toDouble();
  		return new Amount(result);
  	}
focal_method.class_method_signature: Amount.minus(final Amount other)
focal_method.full_signature: public Amount minus(final Amount other)
focal_method.identifier: minus
focal_method.invocations: toDouble toDouble
focal_method.modifiers: public
focal_method.parameters: (final Amount other)
focal_method.return: Amount
focal_method.signature: Amount minus(final Amount other)