package de.egga.banking;

import org.junit.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class AmountTest {

    @Test
    public void two_same_amounts_should_be_sane() {
        Amount amount = new Amount(12);
        assertThat(amount).isEqualTo(new Amount(12));
    }

    @Test
    public void two_different_amounts_should_be_sane() {
        Amount amount = new Amount(11);
        assertThat(amount).isNotEqualTo(new Amount(12));
    }
}

@@ -461,11 +461,176 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void it_should_add_amounts() %7B%0A%0A        Amount sum = new Amount(1).add(new Amount(3));%0A        assertThat(sum).isEqualTo(new Amount(4));%0A    %7D
 %0A%7D%0A

refactor amount test