From 572067ab0ac2d2cb352c6cc32f6016c32d9da936 Mon Sep 17 00:00:00 2001 From: Imron Date: Tue, 25 Jan 2022 01:28:43 +0100 Subject: [PATCH 1/2] gitignore --- .idea/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.idea/.gitignore b/.idea/.gitignore index 61d6df2..eb516de 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -7,6 +7,7 @@ /dataSources/ /dataSources.local.xml /target +target/ pom.xml.tag pom.xml.releaseBackup pom.xml.versionsBackup From 46b7d8467ef538f3e03bb18c1355c33c8610297b Mon Sep 17 00:00:00 2001 From: Imron Date: Tue, 25 Jan 2022 01:39:54 +0100 Subject: [PATCH 2/2] address toString tested --- .../hs/fulda/de/ci/exam/project/Address.java | 8 +------- .../fulda/de/ci/exam/project/AddressTest.java | 12 ++++-------- .../hs/fulda/de/ci/exam/project/Address.class | Bin 1368 -> 1308 bytes .../hs/fulda/de/ci/exam/project/Airport.class | Bin 1827 -> 1827 bytes .../de/ci/exam/project/AddressTest.class | Bin 571 -> 1197 bytes .../de/ci/exam/project/AirportTest.class | Bin 3737 -> 3594 bytes 6 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/main/java/hs/fulda/de/ci/exam/project/Address.java b/src/main/java/hs/fulda/de/ci/exam/project/Address.java index 2fd7b89..56f5d4d 100644 --- a/src/main/java/hs/fulda/de/ci/exam/project/Address.java +++ b/src/main/java/hs/fulda/de/ci/exam/project/Address.java @@ -17,12 +17,6 @@ public class Address { @Override public String toString() { - return "Address{" + - "streetAddress='" + streetAddress + '\'' + - ", city='" + city + '\'' + - ", state='" + state + '\'' + - ", zipCode='" + zipCode + '\'' + - ", country='" + country + '\'' + - '}'; + return streetAddress + ", " + city + ", " + state + ", " + zipCode + ", " + country; } } diff --git a/src/test/java/hs/fulda/de/ci/exam/project/AddressTest.java b/src/test/java/hs/fulda/de/ci/exam/project/AddressTest.java index 60ccf8f..f1824d3 100644 --- a/src/test/java/hs/fulda/de/ci/exam/project/AddressTest.java +++ b/src/test/java/hs/fulda/de/ci/exam/project/AddressTest.java @@ -1,17 +1,13 @@ package hs.fulda.de.ci.exam.project; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.*; +import static org.assertj.core.api.Assertions.*; class AddressTest { - @BeforeEach - void setUp() { - } - @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"); } } \ No newline at end of file diff --git a/target/classes/hs/fulda/de/ci/exam/project/Address.class b/target/classes/hs/fulda/de/ci/exam/project/Address.class index 1cb1d405eaf12d81e11b6c85c0a8ce202ccf6d65..4410a35a196662239533c36477a05bbdf1650a89 100644 GIT binary patch delta 27 acmcb?HHT{h6B8dVqmBXsZT4Z}VFmzAtOT6^ delta 87 zcmbQkb%SdI6O)&xV@gU?LYP&V14wXVg9rm3gCvk8#~?7dl{Jb{c=7{Q8%A*;DLUDRO`TC1 U%*qF{Fg9wn6WDsDGV-TF&${NKeGWh|k4Wk5*6rF6urp_n> UX5|A}3X`X^1v08me#vG90N|4kh5!Hn diff --git a/target/test-classes/hs/fulda/de/ci/exam/project/AddressTest.class b/target/test-classes/hs/fulda/de/ci/exam/project/AddressTest.class index b1cf551113938b10960859fa5c08bd59a6d87e6d..a6d458a8950a292f05048141b7d8b5957c96146e 100644 GIT binary patch literal 1197 zcmb`G?@!Y}7{|Z2!CFfBVNn!CsUot$q`(x!8O>ruUo4u)f-%OB+jeX>w-&Egqkoof zz-TnS_Kz|?ZI?+RFZRMNy}Lfw`#zuN+h@OifBgYq8)XYNTm#ol+%U0d;--lu6Spj6 zupAG03k9s0ST#_zFp1j+)=YTua^1iNL+*j}rGChe%@_6=Mji)E!7x>ozIYz>>O$3c zy-N|N8Z>x!pDP(Z_k$z4EklMvwHam$N?qP=vkB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