Browse Source

bring TestOne zum laufem amk!

master
amadoubahaa68134 6 years ago
parent
commit
2f1561939b
1 changed files with 47 additions and 0 deletions
  1. 47
    0
      src/Testamadoubahaa.java

+ 47
- 0
src/Testamadoubahaa.java View File

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);


//

//
}

}

Loading…
Cancel
Save