From 3d1e50c8afe83ab3a976b65ae1f1eeb35d73719f Mon Sep 17 00:00:00 2001 From: josephbate Date: Thu, 21 Nov 2024 13:20:31 +0300 Subject: [PATCH] resolved conversations --- .../org/openelisglobal/address/AddressPartServiceTest.java | 6 +++--- .../org/openelisglobal/address/PersonAdressServiceTest.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/openelisglobal/address/AddressPartServiceTest.java b/src/test/java/org/openelisglobal/address/AddressPartServiceTest.java index 730d552ee5..cf13752ae6 100644 --- a/src/test/java/org/openelisglobal/address/AddressPartServiceTest.java +++ b/src/test/java/org/openelisglobal/address/AddressPartServiceTest.java @@ -67,10 +67,10 @@ public void updateAddressPart_shouldUpdateAddressPart() throws Exception { String partId = partService.insert(part); AddressPart savedPart = partService.get(partId); - savedPart.setPartName("upadtedName"); + savedPart.setPartName("updatedName"); partService.save(savedPart); - Assert.assertEquals("upadtedName", savedPart.getPartName()); + Assert.assertEquals("updatedName", savedPart.getPartName()); } @@ -84,7 +84,7 @@ public void deleteAddressPart_shouldDeleteAddressPart() throws Exception { String partId = partService.insert(part); AddressPart savedPart = partService.get(partId); - savedPart.setPartName("upadtedName"); + savedPart.setPartName("updatedName"); partService.delete(savedPart); Assert.assertEquals(0, partService.getAll().size()); diff --git a/src/test/java/org/openelisglobal/address/PersonAdressServiceTest.java b/src/test/java/org/openelisglobal/address/PersonAdressServiceTest.java index 37af9bcaa6..4d9d20101e 100644 --- a/src/test/java/org/openelisglobal/address/PersonAdressServiceTest.java +++ b/src/test/java/org/openelisglobal/address/PersonAdressServiceTest.java @@ -138,8 +138,8 @@ public void insert_shouldInsertPersonAdress() throws Exception { Assert.assertEquals(0, pAddressService.getAll().size()); - AddressPK savedPAID = pAddressService.insert(personAddress); - PersonAddress address = pAddressService.get(savedPAID); + AddressPK savedAddressPK = pAddressService.insert(personAddress); + PersonAddress address = pAddressService.get(savedAddressPK); Assert.assertEquals("123", address.getValue()); Assert.assertEquals("B", address.getType());