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

boli
13.12.2006 ab404d9dcbfadd2e5714831cf855d08ebf18dfff
refs
author boli <boli@localhost>
Wednesday, September 13, 2006 01:12 +0200
committer boli <boli@localhost>
Wednesday, September 13, 2006 01:12 +0200
commitab404d9dcbfadd2e5714831cf855d08ebf18dfff
tree 0049aabc0e780bc8bba73663123abef44a7bcb8f tree | zip | gz
parent 9cf4a0f6dbad946768712288c56bee8898363f5a view | diff
This commit changes several aspects of the unit test infrastructure:

- Created config-changes.ldif file in tests/unit-tests-testng/resource/. This file is applied when the test environment Directory Server starts.

- The test environment Directory Server started with TestCaseUtils.startServer() now uses non privileged ports. LDAP uses 32389 and JMX uses 33689.

- Added method getLdapPort() and getJmxPort() to retrieve the ports the test environment Directory Server is using.

- Modified current test cases to use the new ports.

- Added method getTestResource(String filename) to retrieve files the test resources folder.

- Deprecated the fixture structure for establishing a test environment Directory Server instance.

- Modified schema test cases to use TestCaseUtils.startServer() instead of the fixture framework.
10 files modified
122 ■■■■■ changed files
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/ConfigurationFixture.java 7 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/FixtureFactory.java 3 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/InitialDirectoryServerFixture.java 5 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/SchemaFixture.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java 43 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java 6 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java 15 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/EqualityMatchingRuleTest.java 14 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SynchronizationTestCase.java 19 ●●●● diff | view | raw | blame | history