Compare commits
5 Commits
9a7642a516
...
becdc0e088
Author | SHA1 | Date | |
---|---|---|---|
![]() |
becdc0e088 | ||
![]() |
1b02d17585 | ||
![]() |
2f1561939b | ||
![]() |
d4398ff5e9 | ||
![]() |
334c45e723 |
1
.idea/ChareSWE.iml
generated
1
.idea/ChareSWE.iml
generated
@ -7,5 +7,6 @@
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="jars" level="project" />
|
||||
</component>
|
||||
</module>
|
6
src/HelloWorld.java
Normal file
6
src/HelloWorld.java
Normal file
@ -0,0 +1,6 @@
|
||||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
|
||||
System.out.println("Hallo Welt");
|
||||
}
|
||||
}
|
47
src/Testamadoubahaa.java
Normal file
47
src/Testamadoubahaa.java
Normal 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);
|
||||
|
||||
|
||||
//
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user