Merge remote-tracking branch 'origin/master'
# Conflicts: # .idea/misc.xml
This commit is contained in:
commit
e5d3a789e6
19
.drone.yml
19
.drone.yml
@ -1,19 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: anapsix/alpine-java:8_jdk
|
|
||||||
commands:
|
|
||||||
- mkdir -p droneout
|
|
||||||
- javac -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar -d droneout src/Beduerftiger.java
|
|
||||||
- javac -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar -d droneout src/TestBeduerftiger.java
|
|
||||||
- javac -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar -d droneout src/Person.java
|
|
||||||
- javac -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar -d droneout src/Account.java
|
|
||||||
- javac -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar -d droneout src/TestAccount.java
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test:
|
|
||||||
image: anapsix/alpine-java:8_jdk
|
|
||||||
commands:
|
|
||||||
- java -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar org.junit.runner.JUnitCore TestBeduerftiger
|
|
||||||
- java -cp droneout:jars/hamcrest-core-1.3.jar:jars/junit-4.12.jar org.junit.runner.JUnitCore TestAccount
|
|
||||||
|
|
19
src/TestClass.java
Normal file
19
src/TestClass.java
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import org.junit.Test;
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
|
||||||
|
public class TestClass {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test1(){
|
||||||
|
// arrange
|
||||||
|
Person p = new Person("Dani", "Estade", 18);
|
||||||
|
|
||||||
|
Spender s = new Spender( "titi", "nase", 22 , 33);
|
||||||
|
|
||||||
|
//act
|
||||||
|
assertEquals("titi", s.name);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user