Software Engineering “im WiSe18"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Testamadoubahaa.java 577B

5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import org.junit.Test;
  2. import static org.junit.Assert.*;
  3. public class Testamadoubahaa {
  4. @Test
  5. public void testTrue(){
  6. assertTrue(1==1);
  7. assertEquals(4, 2*2);
  8. }
  9. @Test
  10. public void testMultiply(){
  11. // Arrange
  12. int i = 2;
  13. // Act
  14. int result = i * 2;
  15. // Assert
  16. assertEquals(4, result);
  17. }
  18. @Test
  19. public void testOne(){
  20. // Arrange
  21. int j = 23 ;
  22. int a = 38;
  23. // Act
  24. int res = j + a;
  25. // Assert
  26. assertEquals(100, res);
  27. }
  28. }