Fix broken unit tests discovered by awang@ptc.com when attempting to port OpenDS to IBM JVM
| | |
| | | |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.ModifyDNOperation; |
| | | import org.opends.server.tools.LDAPModify; |
| | | |
| | | import static org.testng.Assert.*; |
| | |
| | | String path = TestCaseUtils.createTempFile( |
| | | "dn: uid=test.user,o=test", |
| | | "changetype: modrdn", |
| | | "newrdn: uid=p\\e4ssw\\f6rd", |
| | | "newrdn: uid=Lu\\C4\\8Di\\C4\\87", |
| | | "deleteoldrdn: 1"); |
| | | |
| | | String[] args = |
| | |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-sasl-mechanism-handler-prop", |
| | | "--handler-name", "DIGEST-MD5", |
| | | "--set", "server-fqdn:" + "127.0.0.1"); |
| | | |
| | | |
| | | File pwFile = File.createTempFile("valid-bind-password-", ".txt"); |
| | | pwFile.deleteOnExit(); |
| | | FileWriter fileWriter = new FileWriter(pwFile); |
| | |
| | | |
| | | @AfterClass |
| | | public void tearDown() throws Exception { |
| | | |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-sasl-mechanism-handler-prop", |
| | | "--handler-name", "DIGEST-MD5", |
| | |
| | | public void testPLAIN() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | |
| | | String[] args = |
| | | { |
| | | "-h", "127.0.0.1", |