Beduerftiger Class erstellt
This commit is contained in:
parent
6d88ba7850
commit
f064d3835e
15
src/Beduerftiger.java
Normal file
15
src/Beduerftiger.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
public class Beduerftiger {
|
||||||
|
|
||||||
|
public String bFirstName;
|
||||||
|
public String bLastName;
|
||||||
|
public String bNeed;
|
||||||
|
|
||||||
|
public Beduerftiger(){
|
||||||
|
|
||||||
|
}
|
||||||
|
public Beduerftiger(String theFirstName, String theLastName, String theNeed ){
|
||||||
|
this.bFirstName = theFirstName;
|
||||||
|
this.bLastName = theLastName;
|
||||||
|
this.bNeed = theNeed;
|
||||||
|
}
|
||||||
|
}
|
27
src/TestBeduerftiger.java
Normal file
27
src/TestBeduerftiger.java
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import org.junit.Test;
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
|
||||||
|
public class TestBeduerftiger {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void firstNameChange(){
|
||||||
|
String bfirstName= "Jesus";
|
||||||
|
String result ="Jesus";
|
||||||
|
assertEquals(bfirstName, result);
|
||||||
|
}
|
||||||
|
@Test
|
||||||
|
public void lastNameChange(){
|
||||||
|
String bLastName= "Gottessohn";
|
||||||
|
String result ="Gottessohn";
|
||||||
|
assertEquals(bLastName, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void NeedChange(){
|
||||||
|
String bNeed= "Abendmahl";
|
||||||
|
String result ="Abendmahl";
|
||||||
|
assertEquals(bNeed, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user