/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* 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 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 2008 Sun Microsystems, Inc.
* Portions Copyright 2015 ForgeRock AS.
*/
/**
* Common methods for hooking in the test components.
*/
public final class TestCfg {
/**
* A one-to-many relation between the root and test-parent components.
*/
private static final InstantiableRelationDefinition<TestParentCfgClient, TestParentCfg> RD_TEST_ONE_TO_MANY_PARENT;
/**
* A one-to-zero-or-one relation between the root and a test-parent
* component.
*/
// @Checkstyle:off
// @Checkstyle:on
/** Create a one-to-many relation for test-parent components. */
static {
}
/** Create a one-to-many relation for test-parent components. */
static {
}
/**
* Registers test parent and child object class definitions and any required
* resource bundles.
* <p>
* Unit tests which call this method <b>must</b> call {@link #cleanup()} on
* completion.
*
* @throws Exception
* If an unexpected error occurred.
*/
// Ensure that the relations are registered (do this after things
// that can fail and leave tests in a bad state).
}
private static void initializeAndRegisterBundle(ManagedObjectDefinition<?, ?> definition) throws Exception {
}
/**
* Deregisters the test configurations from the administration framework.
*/
public static synchronized void cleanup() {
}
/**
* Gets the one-to-many relation between the root and test-parent
* components.
* <p>
* Unit tests which call this method <b>must</b> have already called
* {@link #setUp()}.
*
* @return Returns the one-to-many relation between the root and test-parent
* components.
*/
// @Checkstyle:off
return RD_TEST_ONE_TO_MANY_PARENT;
}
// @Checkstyle:on
/**
* Gets the one-to-zero-or-one relation between the root and a test-parent
* component.
* <p>
* Unit tests which call this method <b>must</b> have already called
* {@link #setUp()}.
*
* @return Returns the one-to-zero-or-one relation between the root and a
* test-parent component.
*/
// @Checkstyle:off
}
// @Checkstyle:on
/**
* Initializes a property definition and its default behavior.
*
* @param propertyDef
* The property definition to be initialized.
* @throws Exception
* If the property definition could not be initialized.
*/
public static void initializePropertyDefinition(PropertyDefinition<?> propertyDef) throws Exception {
}
/**
* Adds a constraint temporarily with test child definition.
*
* @param constraint
* The constraint.
*/
}
/**
* Adds a property definition temporarily with test child definition,
* replacing any existing property definition with the same name.
*
* @param pd
* The property definition.
*/
}
/**
* Removes a constraint from the test child definition.
*
* @param constraint
* The constraint.
*/
}
/** Prevent instantiation. */
private TestCfg() {
// No implementation required.
}
}