From 4d593dcf85deffb7d20166f41a0743be5ed4750b Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Wed, 26 Oct 2016 11:13:54 +0200 Subject: [PATCH] fix IT where the modified DN leads to a new entryUUID --- .../ldap/itest/odm/LdapTemplateOdmWithDnAnnotationsITest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration-tests/src/test/java/org/springframework/ldap/itest/odm/LdapTemplateOdmWithDnAnnotationsITest.java b/test/integration-tests/src/test/java/org/springframework/ldap/itest/odm/LdapTemplateOdmWithDnAnnotationsITest.java index e945d107..8499fee9 100644 --- a/test/integration-tests/src/test/java/org/springframework/ldap/itest/odm/LdapTemplateOdmWithDnAnnotationsITest.java +++ b/test/integration-tests/src/test/java/org/springframework/ldap/itest/odm/LdapTemplateOdmWithDnAnnotationsITest.java @@ -171,6 +171,7 @@ public class LdapTemplateOdmWithDnAnnotationsITest extends AbstractLdapTemplateI assertThat(person.getCountry()).isEqualTo("Norway"); assertThat(person.getDesc().get(0)).isEqualTo("Sweden, Company1, Some Person3"); assertThat(person.getTelephoneNumber()).isEqualTo("+46 555-123654"); - assertThat(person.getEntryUuid()).isEqualTo(entryUuid); + assertThat(person.getEntryUuid()).describedAs("The operational attribute 'entryUUID' was not set").isNotEmpty(); + assertThat(person.getEntryUuid()).isNotEqualTo(entryUuid); } }