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());