Browse Source

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	.idea/misc.xml
master
Danial Eshete 2 years ago
parent
commit
e5d3a789e6
2 changed files with 19 additions and 19 deletions
  1. 0
    19
      .drone.yml
  2. 19
    0
      src/TestClass.java

+ 0
- 19
.drone.yml View File

@@ -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
- 0
src/TestClass.java View 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…
Cancel
Save