3 Commits

  1. 7
      src/test/java/com/ugsbo/complexnumcalc/DivideComplexNumbersTest.java
  2. 7
      src/test/java/com/ugsbo/complexnumcalc/MultiplyComplexNumbersTest.java
  3. 7
      src/test/java/com/ugsbo/complexnumcalc/SubstractComplexNumbersTest.java

7
src/test/java/com/ugsbo/complexnumcalc/DivideComplexNumbersTest.java

@ -1,6 +1,7 @@
package com.ugsbo.complexnumcalc;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import org.junit.Test;
@ -14,7 +15,7 @@ public class DivideComplexNumbersTest {
ComplexNumber quotient = dividend.divide(divisor);
assertTrue("The quotient is not as expected", quotient.equals(expected));
assertThat("The quotient is not as expected", quotient, equalTo(expected));
}
@Test
@ -25,6 +26,6 @@ public class DivideComplexNumbersTest {
ComplexNumber quotient = dividend.divide(divisor);
assertTrue("The quotient is not as expected", quotient.equals(expected));
assertThat("The quotient is not as expected", quotient, equalTo(expected));
}
}

7
src/test/java/com/ugsbo/complexnumcalc/MultiplyComplexNumbersTest.java

@ -1,6 +1,7 @@
package com.ugsbo.complexnumcalc;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import org.junit.Test;
@ -14,7 +15,7 @@ public class MultiplyComplexNumbersTest {
ComplexNumber product = firstFaktor.multiply(secoundFaktor);
assertTrue("The product is not as expected", product.equals(expected));
assertThat("The product is not as expected", product, equalTo(expected));
}
@Test
@ -25,6 +26,6 @@ public class MultiplyComplexNumbersTest {
ComplexNumber product = firstFaktor.multiply(secoundFaktor);
assertTrue("The product is not as expected", product.equals(expected));
assertThat("The product is not as expected", product, equalTo(expected));
}
}

7
src/test/java/com/ugsbo/complexnumcalc/SubstractComplexNumbersTest.java

@ -1,6 +1,7 @@
package com.ugsbo.complexnumcalc;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import org.junit.Test;
@ -14,7 +15,7 @@ public class SubstractComplexNumbersTest {
ComplexNumber difference = minuend.substract(subtrahend);
assertTrue("The difference is not as expected", difference.equals(expected));
assertThat("The difference is not as expected", difference, equalTo(expected));
}
@Test
@ -25,6 +26,6 @@ public class SubstractComplexNumbersTest {
ComplexNumber difference = minuend.substract(subtrahend);
assertTrue("The difference is not as expected", difference.equals(expected));
assertThat("The difference is not as expected", difference, equalTo(expected));
}
}
Loading…
Cancel
Save