diff options
author | Stefan Seelmann <mail@stefan-seelmann.de> | 2019-06-20 17:56:08 +0300 |
---|---|---|
committer | Stefan Seelmann <mail@stefan-seelmann.de> | 2019-06-20 17:56:08 +0300 |
commit | a061787a53bd4762ce928ec58eac09473d82bc01 (patch) | |
tree | bfed63479a8378a52501d02f279c0516ec3d0ac9 | |
parent | e52d2bae32f8cb0787ede1b2d96937662102019a (diff) |
Fix test under Windows
-rw-r--r-- | tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/EntryEditorTest.java | 6 |
1 files changed, 3 insertions, 3 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 52c9e272a..00e229206 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 @@ -53,6 +53,7 @@ import org.apache.directory.server.core.integ.AbstractLdapTestUnit; import org.apache.directory.server.core.security.CertificateUtil; import org.apache.directory.studio.ldapbrowser.core.BrowserCoreMessages; import org.apache.directory.studio.ldifparser.LdifFormatParameters; +import org.apache.directory.studio.ldifparser.LdifParserConstants; import org.apache.directory.studio.ldifparser.model.lines.LdifAttrValLine; import org.apache.directory.studio.test.integration.ui.bots.BotUtils; import org.apache.directory.studio.test.integration.ui.bots.BrowserViewBot; @@ -467,7 +468,7 @@ public class EntryEditorTest extends AbstractLdapTestUnit assertFalse( entryEditorBot.getAttributeValues().contains( "description: testTextValueEditor 1" ) ); assertTrue( entryEditorBot.getAttributeValues().contains( "description: " + newValue ) ); String description2Ldif = LdifAttrValLine.create( "description", newValue ) - .toFormattedString( LdifFormatParameters.DEFAULT ); + .toFormattedString( LdifFormatParameters.DEFAULT ).replace( LdifParserConstants.LINE_SEPARATOR, "\n" ); modificationLogsViewBot.waitForText( "replace: description\n" + description2Ldif ); } @@ -493,8 +494,7 @@ public class EntryEditorTest extends AbstractLdapTestUnit EntryEditorBot entryEditorBot = studioBot.getEntryEditorBot( "cn=Barbara Jensen,ou=users,ou=system" ); entryEditorBot.activate(); - BotUtils.sleep( 10000 ); - + BotUtils.sleep( 1000 ); assertTrue( entryEditorBot.getAttributeValues() .contains( "userCertificate: X.509v3: CN=Foo,OU=Bar,O=Baz,C=US" ) ); } |