Browse Source

Merge branch 'feature-Address' into dev

feature-pr-PersonClass
Imron 3 years ago
parent
commit
92ae317f40
  1. 1
      .idea/.gitignore
  2. 8
      src/main/java/hs/fulda/de/ci/exam/project/Address.java
  3. 12
      src/test/java/hs/fulda/de/ci/exam/project/AddressTest.java
  4. BIN
      target/classes/hs/fulda/de/ci/exam/project/Address.class
  5. BIN
      target/classes/hs/fulda/de/ci/exam/project/Airport.class
  6. BIN
      target/test-classes/hs/fulda/de/ci/exam/project/AddressTest.class
  7. BIN
      target/test-classes/hs/fulda/de/ci/exam/project/AirportTest.class

1
.idea/.gitignore

@ -7,6 +7,7 @@
/dataSources/ /dataSources/
/dataSources.local.xml /dataSources.local.xml
/target /target
target/
pom.xml.tag pom.xml.tag
pom.xml.releaseBackup pom.xml.releaseBackup
pom.xml.versionsBackup pom.xml.versionsBackup

8
src/main/java/hs/fulda/de/ci/exam/project/Address.java

@ -17,12 +17,6 @@ public class Address {
@Override @Override
public String toString() { public String toString() {
return "Address{" +
"streetAddress='" + streetAddress + '\'' +
", city='" + city + '\'' +
", state='" + state + '\'' +
", zipCode='" + zipCode + '\'' +
", country='" + country + '\'' +
'}';
return streetAddress + ", " + city + ", " + state + ", " + zipCode + ", " + country;
} }
} }

12
src/test/java/hs/fulda/de/ci/exam/project/AddressTest.java

@ -1,17 +1,13 @@
package hs.fulda.de.ci.exam.project; package hs.fulda.de.ci.exam.project;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import static org.assertj.core.api.Assertions.*;
class AddressTest { class AddressTest {
@BeforeEach
void setUp() {
}
@Test @Test
void testToString() {
void testToString_Adress() {
Address address_fr = new Address("Frankfurt str 12", "Frankfurt", "Hessen", "63023", "Germany");
assertThat(address_fr.toString()).describedAs(" get address ").isEqualTo("Frankfurt str 12, Frankfurt, Hessen, 63023, Germany");
} }
} }

BIN
target/classes/hs/fulda/de/ci/exam/project/Address.class

BIN
target/classes/hs/fulda/de/ci/exam/project/Airport.class

BIN
target/test-classes/hs/fulda/de/ci/exam/project/AddressTest.class

BIN
target/test-classes/hs/fulda/de/ci/exam/project/AirportTest.class

Loading…
Cancel
Save