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

Jean-Noël Rouvignac
20.35.2015 d7258adb1d9a236f824c6cefe9b277db4e5f03e1
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 20, 2015 14:35 +0200
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 20, 2015 15:07 +0200
commitd7258adb1d9a236f824c6cefe9b277db4e5f03e1
tree e325196d65865e0abf2486f099ae71e658a9dba6 tree | zip | gz
parent be0e008bc135a329f301cb8e05527fe201ddc0ad view | diff
Fixed random test in SchemaBackendTestCase: testRemoveAttributeTypeReferencedByNameForm() always failed when run after testRemoveObjectClassReferencedByNameForm() which does not properly cleanup schema changes.

SchemaBackendTestCase.java:
In testRemoveAttributeTypeReferencedByNameForm() and testRemoveObjectClassReferencedByNameForm(), properly reset schema state after test run.
When submitting changes for ldapmodify, always use stdin (instead of temporary files).
Consolidated all runModify*() and args*() methods.
Code cleanup.

TestCaseUtils.java:
Use try-with-resources.
2 files modified
1182 ■■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java 123 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/backends/SchemaBackendTestCase.java 1059 ●●●●● diff | view | raw | blame | history