package programmiermethoden_und_Werkzeuge; import static org.junit.Assert.*; import org.junit.Test; public class TaschenrechnerTest { @Test public void testAddition() { int a = 3; int b = 4; int ab = a + b; int result = Taschenrechner.addition(a,b); assertEquals(ab, result); } @Test public void testMultiplikation() { int a = 6; int b = 6; int ab = a * b; int result = Taschenrechner.multiplikation(a, b); assertEquals(ab, result); } @Test public void testDivision() { int a = 14; int b = 7; int ab = a / b; int result = Taschenrechner.division(a, b); assertEquals(ab, result); } @Test public void testPotenzieren() { int a = 2; int b = 3; int ab = (int)Math.pow(a, b); int result = Taschenrechner.potenzieren(a, b); assertEquals(ab, result); } @Test public void testKleinerAls() { int a = 9; int b = 6; boolean ab = a