|
|
@ -0,0 +1,54 @@ |
|
|
|
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() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testDivision() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testPotenzieren() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testKleinerAls() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testGroeßerAls() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testGleich() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testRandomIntegerNummer() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |