123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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(){
-
- // Arrange
- int j = 23 ;
- int a = 38;
-
- // Act
- int res = j + a;
-
- // Assert
-
- assertEquals(100, res);
-
- }
- }
|