diff options
author | Stefan Seelmann <mail@stefan-seelmann.de> | 2019-06-23 10:45:07 +0300 |
---|---|---|
committer | Stefan Seelmann <mail@stefan-seelmann.de> | 2019-06-23 10:45:07 +0300 |
commit | ac98d871167ca58e5584b2479e159913abb13ded (patch) | |
tree | 57508c642b6c57923b7a4a86fb48932f6c42c947 | |
parent | a2d912d8a3766d0abbfed823aeaa13af582dd2dd (diff) |
Fix test, server now returns hasSubordinates flag
-rw-r--r-- | tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/CopyEntryTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/CopyEntryTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/CopyEntryTest.java index f46ce4309..cafe85020 100644 --- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/CopyEntryTest.java +++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/CopyEntryTest.java @@ -30,6 +30,8 @@ import org.apache.directory.server.core.annotations.ApplyLdifFiles; import org.apache.directory.server.core.integ.AbstractLdapTestUnit; import org.apache.directory.studio.connection.core.Connection; import org.apache.directory.studio.connection.core.Connection.AliasDereferencingMethod; +import org.apache.directory.studio.ldapbrowser.core.BrowserCoreConstants; +import org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin; import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection; import org.apache.directory.studio.ldifparser.LdifParserConstants; import org.apache.directory.studio.test.integration.ui.bots.BrowserViewBot; @@ -82,6 +84,9 @@ public class CopyEntryTest extends AbstractLdapTestUnit { connectionsViewBot.deleteTestConnections(); Assertions.genericTearDownAssertions(); + // DIRSERVER-2133: reset check for children preference + BrowserCorePlugin.getDefault() + .getPluginPreferences().setValue( BrowserCoreConstants.PREFERENCE_CHECK_FOR_CHILDREN, true ); } @@ -119,6 +124,10 @@ public class CopyEntryTest extends AbstractLdapTestUnit @Test public void testCopyPasteMultipleEntriesWithCopyDepthDialogObjectOnly() throws Exception { + // DIRSERVER-2133: disable check for children for this test + BrowserCorePlugin.getDefault() + .getPluginPreferences().setValue( BrowserCoreConstants.PREFERENCE_CHECK_FOR_CHILDREN, false ); + // select and copy multiple entries browserViewBot.expandEntry( "DIT", "Root DSE", "ou=system", "ou=users" ); String[] children = |