mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
09.44.2014 fd27235fc63c65569736622a7f7181144d5f8428
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, January 9, 2014 09:44 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, January 9, 2014 09:44 +0100
commitfd27235fc63c65569736622a7f7181144d5f8428
tree 5e7f5d797b02474844767cf2e72ac13428f76210 tree | zip | gz
parent d70586b00b9530ab99ab4b8f003e9a54793e419f view | diff
Fixed broken tests

ReplicationDomain.java:
Made ieContext private and used an AtomicReference for it + In acquireIEContext() and releaseIEContext(), removed now useless synchronized keyword.
In acquireIEContext(), returned the created ieContext + changed all client code to assign a variable from the result.

ReplicationDomainTest.java:
Avoid NPE in case the ieContext is released before the asserts.
Called ReplicationDomain.getImportExportContext().
2 files modified
78 ■■■■■ changed files
opends/src/server/org/opends/server/replication/service/ReplicationDomain.java 63 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 15 ●●●● diff | view | raw | blame | history