From 8b877b06216f354bfe296274eb4a0a55601ef11a Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 06:01:29 +0100 Subject: [PATCH] Refactoring: Minor Renaming in User class --- projjpn/src/main/java/de/hs_fulda/ciip/projjpn/User.java | 2 +- .../src/test/java/de/hs_fulda/ciip/projjpn/CustomersTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/User.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/User.java index 3c1fc87..710e097 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/User.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/User.java @@ -32,7 +32,7 @@ public class User { public String getNickName() { return nickName; } - public String geteMail() { + public String getEMail() { return eMail; } public Birthdate getBirthdate() { diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/CustomersTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/CustomersTest.java index 92669c7..110d7ad 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/CustomersTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/CustomersTest.java @@ -146,7 +146,7 @@ public class CustomersTest extends TestCase { boolean correctFirstName = "Mia".equals(gotUser.getFirstName()); boolean correctLastName = "Muster".equals(gotUser.getLastName()); boolean correctNickName = "harley".equals(gotUser.getNickName()); - boolean correctEMail = "mia@muster.de".equals(gotUser.geteMail()); + boolean correctEMail = "mia@muster.de".equals(gotUser.getEMail()); boolean correctBirthdate = birthdate.toString().equals(gotUser.birthdate.toString()); // Then