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

Jean-Noel Rouvignac
10.41.2014 15ca28c0a590e2ec0fd846d83eced4567b09a132
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
commit15ca28c0a590e2ec0fd846d83eced4567b09a132
tree 0fcec980af8507255983c774ee7b893c39a74afc tree | zip | gz
parent 5168ba85e8f918b7acd57acc5f61300b08dd9fd9 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
opendj-sdk/opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/core/networkgroups/MockResourceLimitsQOSPolicyCfg.java 209 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/core/networkgroups/ResourceLimitsPolicyTest.java 151 ●●●●● diff | view | raw | blame | history