bring TestOne zum laufem amk!

This commit is contained in:
amadoubahaa68134 2018-11-22 15:43:02 +01:00
parent d4398ff5e9
commit 2f1561939b

47
src/Testamadoubahaa.java Normal file
View File

@ -0,0 +1,47 @@
import org.junit.Test;
import static org.junit.Assert.*;
public class Testamadoubahaa {
@Test
public void testTrue(){
assertTrue(1==1);
assertEquals(4, 2*2);
}
@Test
public void testMultiply(){
// Arrange
int i = 2;
// Act
int result = i * 2;
// Assert
assertEquals(4, result);
}
@Test
public void testOne(){
//
int j = 23 ;
int a = 38;
// Act
int res = j + a;
// Assert
assertEquals(100, res);
//
//
}
}