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 594B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. //
  21. int j = 23 ;
  22. int a = 38;
  23. // Act
  24. int res = j + a;
  25. // Assert
  26. assertEquals(100, res);
  27. //
  28. //
  29. }
  30. }