You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2018/07/12 21:27:45 UTC

[directory-studio] branch master updated: Fix assert and add message for investigating sporadic failure

This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-studio.git


The following commit(s) were added to refs/heads/master by this push:
     new 520bd13  Fix assert and add message for investigating sporadic failure
520bd13 is described below

commit 520bd130e83371a3aba6f7459ab476a8590b43ab
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Thu Jul 12 23:27:26 2018 +0200

    Fix assert and add message for investigating sporadic failure
---
 .../apache/directory/studio/test/integration/ui/EntryEditorTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java
index 3c36594..4b9213c 100644
--- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java
+++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java
@@ -249,12 +249,13 @@ public class EntryEditorTest extends AbstractLdapTestUnit
 
         // assert pasted value visible in editor
         assertEquals( 9, entryEditorBot.getAttributeValues().size() );
-        entryEditorBot.getAttributeValues().contains( "uid: bjensen" );
+        assertTrue( "Should contain uid=bjensen: " + entryEditorBot.getAttributeValues(),
+            entryEditorBot.getAttributeValues().contains( "uid: bjensen" ) );
 
         // assert pasted value was written to directory
         Entry entry = service.getAdminSession()
             .lookup( new Dn( "cn=\\#\\\\\\+\\, \\\"\u00F6\u00E9\\\",ou=users,ou=system" ) );
-        assertTrue( entry.contains( "uid", "bjensen" ) );
+        assertTrue( "Should contain uid=bjensen: " + entry, entry.contains( "uid", "bjensen" ) );
     }