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

Jean-Noel Rouvignac
09.44.2014 40cb30e336136718732bc9d9c8a7f96ddf9c17b7
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
commit40cb30e336136718732bc9d9c8a7f96ddf9c17b7
tree 953b5f431c8ab7243f8bb48591a21144c49bb253 tree | zip | gz
parent 080720af6c7ef9f2c16417d8dbdd1c343b2ddcd9 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
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java 63 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 15 ●●●● diff | view | raw | blame | history