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

boli
13.12.2006 b9af8f181b7495cb343c280db4ce8979a04bfc91
refs
author boli <boli@localhost>
Wednesday, September 13, 2006 01:12 +0200
committer boli <boli@localhost>
Wednesday, September 13, 2006 01:12 +0200
commitb9af8f181b7495cb343c280db4ce8979a04bfc91
tree bde711269ffbd3191fd644439f985dc0c5c379be tree | zip | gz
parent 85e5ea2b9fb0d035912d74f57be54b31b88884e1 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
opends/tests/unit-tests-testng/src/server/org/opends/server/ConfigurationFixture.java 7 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/FixtureFactory.java 3 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/InitialDirectoryServerFixture.java 5 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/SchemaFixture.java 6 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/SingletonFixtureFactory.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java 43 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java 6 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java 15 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/schema/EqualityMatchingRuleTest.java 14 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SynchronizationTestCase.java 19 ●●●● diff | view | raw | blame | history