Fix build after previous re-import of code
1 files deleted
3 files renamed
21 files modified
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <classpath> |
| | | <classpathentry kind="src" output="target/classes" path="src/main/java"/> |
| | | <classpathentry kind="src" output="target/classes" path="target/generated-sources/plugin"/> |
| | | <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/> |
| | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> |
| | | <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> |
| File was renamed from opendj3/opendj-modules/opendj-sdk/src/test/java/org/opends/sdk/OpenDSTestCase.java |
| | |
| | | * |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.sdk; |
| | | package org.opendj.buildtools.testng; |
| | | |
| | | |
| | | |
| | |
| | | * them include the class name. |
| | | */ |
| | | @Test(sequential = true) |
| | | public abstract class OpenDSTestCase |
| | | public abstract class OpenDJTestCase |
| | | { |
| | | |
| | | // |
| | |
| | | Class<?> cls = this.getClass(); |
| | | // Iterate through all of the fields in all subclasses of |
| | | // DirectoryServerTestCase, but not DirectoryServerTestCase itself. |
| | | while (OpenDSTestCase.class.isAssignableFrom(cls) |
| | | && !OpenDSTestCase.class.equals(cls)) |
| | | while (OpenDJTestCase.class.isAssignableFrom(cls) |
| | | && !OpenDJTestCase.class.equals(cls)) |
| | | { |
| | | final Field fields[] = cls.getDeclaredFields(); |
| | | for (final Field field : fields) |
| File was renamed from opendj3/opendj-modules/opendj-sdk/src/test/java/org/opends/sdk/TestListener.java |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.sdk; |
| | | package org.opendj.buildtools.testng; |
| | | |
| | | |
| | | |
| | | import static com.sun.opends.sdk.util.StaticUtils.EOL; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.FileOutputStream; |
| | |
| | | * This class is our replacement for the test results that TestNG generates. It |
| | | * prints out test to the console as they happen. |
| | | */ |
| | | public class TestListener extends TestListenerAdapter implements IReporter |
| | | public class OpenDJTestListener extends TestListenerAdapter implements IReporter |
| | | { |
| | | |
| | | /** |
| | | * |
| | | * The end-of-line character for this platform. |
| | | */ |
| | | private static final String EOL = System.getProperty("line.separator"); |
| | | |
| | | |
| | | |
| | | private static class TestClassResults |
| | | { |
| | | private final IClass _cls; |
| | |
| | | |
| | | |
| | | |
| | | public TestListener() throws Exception |
| | | public OpenDJTestListener() throws Exception |
| | | { |
| | | initializeProgressVars(); |
| | | } |
| | |
| | | final Object[] testInstances = result.getMethod().getInstances(); |
| | | for (final Object testInstance : testInstances) |
| | | { |
| | | if (testInstance instanceof OpenDSTestCase) |
| | | if (testInstance instanceof OpenDJTestCase) |
| | | { |
| | | final OpenDSTestCase openDSTestCase = (OpenDSTestCase) testInstance; |
| | | final OpenDJTestCase openDJTestCase = (OpenDJTestCase) testInstance; |
| | | final Object[] parameters = result.getParameters(); |
| | | if (result.getStatus() == ITestResult.SUCCESS) |
| | | { |
| | | openDSTestCase.addParamsFromSuccessfulTests(parameters); |
| | | openDJTestCase.addParamsFromSuccessfulTests(parameters); |
| | | // This can eat up a bunch of memory for tests that are |
| | | // expected to throw |
| | | result.setThrowable(null); |
| | | } |
| | | else |
| | | { |
| | | openDSTestCase.addParamsFromFailedTest(parameters); |
| | | openDJTestCase.addParamsFromFailedTest(parameters); |
| | | |
| | | // When the test finishes later on, we might not have |
| | | // everything |
| | |
| | | } |
| | | _checkedForTypeAndAnnotations.add(testClass); |
| | | |
| | | if (!OpenDSTestCase.class.isAssignableFrom(testClass)) |
| | | if (!OpenDJTestCase.class.isAssignableFrom(testClass)) |
| | | { |
| | | final String errorMessage = "The test class " + testClass.getName() |
| | | + " must inherit (directly or indirectly) " |
| File was renamed from opendj3/opendj-modules/opendj-sdk/src/test/java/com/sun/opends/sdk/messages/MessagesTestCase.java |
| | |
| | | * with the License. |
| | | * |
| | | * You can obtain a copy of the license at |
| | | * trunk/opends/resource/legal-notices/OpenDS.LICENSE |
| | | * or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
| | | * trunk/opends/resource/legal-notices/CDDLv1_0.txt |
| | | * or http://forgerock.org/license/CDDLv1.0.html. |
| | | * See the License for the specific language governing permissions |
| | | * and limitations under the License. |
| | | * |
| | | * When distributing Covered Code, include this CDDL HEADER in each |
| | | * file and include the License file at |
| | | * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, |
| | | * trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable, |
| | | * add the following below this CDDL HEADER, with the fields enclosed |
| | | * by brackets "[]" replaced with your own identifying information: |
| | | * Portions Copyright [yyyy] [name of copyright owner] |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Copyright 2011 ForgeRock AS |
| | | */ |
| | | |
| | | package com.sun.opends.sdk.messages; |
| | | /** |
| | | * TestNG unit testing infrastructure necessary for the OpenDJ project. |
| | | */ |
| | | package org.opendj.buildtools.testng; |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | |
| | | |
| | | |
| | | public class MessagesTestCase extends OpenDSTestCase |
| | | { |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "tools", "sdk" }, sequential = true) |
| | | public abstract class ToolsTestCase extends OpenDSTestCase |
| | | public abstract class ToolsTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | # |
| | | # Copyright 2010 Sun Microsystems, Inc. |
| | | # |
| | | |
| | | |
| | | |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | |
| | | # |
| | | # Schema messages |
| | | # |
| | | SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE=Unable to retrieve \ |
| | | approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | SEVERE_ERR_LDAPURL_NO_SCHEME=The provided string "%s" cannot be decoded \ |
| | | as an LDAP URL because it does not contain a protocol scheme |
| | | SEVERE_ERR_LDAPURL_BAD_SCHEME=The provided string "%s" cannot be decoded \ |
| | | as an LDAP URL because the protocol scheme "%s" is invalid. It should be |
| | | as an LDAP URL because the protocol scheme "%s" is invalid. It should be \ |
| | | either "ldap" or "ldaps" |
| | | SEVERE_ERR_LDAPURL_NO_HOST=The provided string "%s" cannot be decoded as \ |
| | | an LDAP URL because it does not contain a host before the colon to specify \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | # |
| | | # Copyright 2009 Sun Microsystems, Inc. |
| | | # |
| | | # Global directives |
| | | # |
| | | global.ordinal=-1 |
| | | # |
| | | # Format string definitions |
| | | # |
| | | # Keys must be formatted as follows: |
| | | # |
| | | # [DESCRIPTION] |
| | | # |
| | | # where: |
| | | # |
| | | # DESCRIPTION is an upper case string providing a hint as to the context of |
| | | # the message in upper case with the underscore ('_') character serving as |
| | | # word separator |
| | | # |
| | | ###SEVERE_ERR_ATTR_SYNTAX_UNKNOWN_APPROXIMATE_MATCHING_RULE_1=Unable to retrieve \ |
| | | ### approximate matching rule %s used as the default for the %s attribute syntax. \ |
| | | ### Approximate matching will not be allowed by default for attributes with this \ |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "ldap", "sdk" }, sequential = true) |
| | | public abstract class LDAPTestCase extends OpenDSTestCase |
| | | public abstract class LDAPTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | * classes found directly under the package org.opends.sdk.util. |
| | | */ |
| | | @Test(groups = { "precommit", "util", "sdk" }, sequential = true) |
| | | public abstract class UtilTestCase extends OpenDSTestCase |
| | | public abstract class UtilTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | |
| | | import java.util.Iterator; |
| | | |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.opends.sdk.schema.Schema; |
| | | import org.testng.Assert; |
| | | import org.testng.annotations.DataProvider; |
| | |
| | | /** |
| | | * Test {@code AttributeDescription}. |
| | | */ |
| | | public final class AttributeDescriptionTestCase extends OpenDSTestCase |
| | | public final class AttributeDescriptionTestCase extends OpenDJTestCase |
| | | { |
| | | @DataProvider(name = "dataForCompareCoreSchema") |
| | | public Object[][] dataForCompareCoreSchema() |
| | |
| | | |
| | | |
| | | |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "types", "sdk" }, sequential = true) |
| | | public abstract class SdkTestCase extends OpenDSTestCase |
| | | public abstract class SdkTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | |
| | | import java.io.IOException; |
| | | |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.opends.sdk.ByteString; |
| | | import org.opends.sdk.ByteStringBuilder; |
| | | import org.opends.sdk.DecodeException; |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.testng.annotations.DataProvider; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | * An abstract base class for all ASN1Reader test cases. |
| | | */ |
| | | @Test(groups = { "precommit", "asn1", "sdk" }, sequential = true) |
| | | public abstract class ASN1ReaderTestCase extends OpenDSTestCase |
| | | public abstract class ASN1ReaderTestCase extends OpenDJTestCase |
| | | { |
| | | |
| | | /** |
| | |
| | | |
| | | import java.io.IOException; |
| | | |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.opends.sdk.ByteString; |
| | | import org.opends.sdk.ByteStringBuilder; |
| | | import org.opends.sdk.DecodeException; |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.testng.annotations.DataProvider; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | * An abstract base class for all ASN1Writer test cases. |
| | | */ |
| | | @Test(groups = { "precommit", "asn1", "sdk" }, sequential = true) |
| | | public abstract class ASN1WriterTestCase extends OpenDSTestCase |
| | | public abstract class ASN1WriterTestCase extends OpenDJTestCase |
| | | { |
| | | |
| | | // Create an array with all of the valid single-byte types. We don't |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.opends.sdk.TestCaseUtils; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "controls", "sdk" }, sequential = true) |
| | | public abstract class ControlsTestCase extends OpenDSTestCase |
| | | public abstract class ControlsTestCase extends OpenDJTestCase |
| | | { |
| | | /** |
| | | * Set up the environment for performing the tests in this suite. |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "types", "sdk" }, sequential = true) |
| | | public abstract class LDIFTestCase extends OpenDSTestCase |
| | | public abstract class LDIFTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "requests", "sdk" }, sequential = true) |
| | | public abstract class RequestsTestCase extends OpenDSTestCase |
| | | public abstract class RequestsTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "responses", "sdk" }, sequential = true) |
| | | public abstract class ResponsesTestCase extends OpenDSTestCase |
| | | public abstract class ResponsesTestCase extends OpenDJTestCase |
| | | { |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | import org.opends.sdk.OpenDSTestCase; |
| | | import org.opendj.buildtools.testng.OpenDJTestCase; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | |
| | | * An abstract class that all schema unit test should extend. |
| | | */ |
| | | @Test(groups = { "precommit", "schema", "sdk" }, sequential = true) |
| | | public abstract class SchemaTestCase extends OpenDSTestCase |
| | | public abstract class SchemaTestCase extends OpenDJTestCase |
| | | { |
| | | } |