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

Jean-Noel Rouvignac
10.41.2014 7cb9dfc4b5a2a2c472b4f8c166f74410d4ed0e74
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, July 10, 2014 17:41 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, July 10, 2014 17:41 +0200
commit7cb9dfc4b5a2a2c472b4f8c166f74410d4ed0e74
tree 01bd99c7f5645230c6a227e27f75e5b2d57438b2 tree | zip | gz
parent b19ae6bcf067bb426cc404398c9491634b00c050 view | diff
Chasing random test failures.
Added better diagnostics to ResourceLimitsPolicyTest in case of test failure.


ResourceLimitsPolicyTest.java:
Created assertOperationIsAllowed() and createQOSPolicy().
Used assertOperationIsAllowed() instead of the ad-hoc asserts.
Replaced MockResourceLimitsQOSPolicyCfg by using Mockito mocks.
Code cleanups.

MockResourceLimitsQOSPolicyCfg.java: REMOVED, now unused
1 files modified
1 files deleted
360 ■■■■ changed files
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/core/networkgroups/MockResourceLimitsQOSPolicyCfg.java 209 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/core/networkgroups/ResourceLimitsPolicyTest.java 151 ●●●●● diff | view | raw | blame | history