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 | |||||
<component name="JavaScriptSettings"> | <component name="JavaScriptSettings"> | ||||
<option name="languageLevel" value="ES6" /> | <option name="languageLevel" value="ES6" /> | ||||
</component> | </component> | ||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" default="false" project-jdk-name="10" project-jdk-type="JavaSDK"> | |||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="false" project-jdk-name="10" project-jdk-type="JavaSDK"> | |||||
<output url="file://$USER_HOME$/gitchareswe" /> | <output url="file://$USER_HOME$/gitchareswe" /> | ||||
</component> | </component> | ||||
</project> | </project> |
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); | |||||
} | |||||
} |