Browse Source

Spender Klasse fertig

master
amadoubahaa68134 6 years ago
parent
commit
b587d1a401
3 changed files with 20 additions and 20 deletions
  1. 0
    19
      .drone.yml
  2. 1
    1
      .idea/misc.xml
  3. 19
    0
      src/TestClass.java

+ 0
- 19
.drone.yml View File

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


+ 1
- 1
.idea/misc.xml View File

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

+ 19
- 0
src/TestClass.java View File

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