import org.onap.policy.apex.context.test.factory.TestContextAlbumFactory;
import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
-import org.onap.policy.apex.model.basicmodel.handling.ApexModelException;
import org.onap.policy.apex.model.contextmodel.concepts.AxContextAlbum;
import org.onap.policy.apex.model.contextmodel.concepts.AxContextModel;
import org.onap.policy.apex.model.utilities.comparison.KeyedMapComparer;
/**
* Test context album update.
*
- * @throws ApexModelException the apex model exception
* @throws ApexException the apex exception
*/
public void testContextAlbumUpdate() throws ApexException {
import org.onap.policy.apex.context.test.factory.TestContextAlbumFactory;
import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
-import org.onap.policy.apex.model.basicmodel.handling.ApexModelException;
import org.onap.policy.apex.model.contextmodel.concepts.AxContextModel;
import org.slf4j.ext.XLogger;
import org.slf4j.ext.XLoggerFactory;
/**
* Test context update.
*
- * @throws ApexModelException the apex model exception
* @throws ApexException the apex exception
*/
public void testContextUpdate() throws ApexException {
import org.onap.policy.apex.context.test.concepts.TestContextLongItem;
import org.onap.policy.apex.context.test.utils.ConfigrationProvider;
import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
-import org.onap.policy.apex.model.basicmodel.handling.ApexModelException;
import org.slf4j.ext.XLogger;
import org.slf4j.ext.XLoggerFactory;
* The method tests concurrent use of context.
*
* @return the verified context
- * @throws ApexModelException the exception occurs in model handling
* @throws ApexException the Apex exception occurs in handling Apex
*/
public Map<String, TestContextLongItem> testConcurrentContext() throws ApexException {
package org.onap.policy.apex.core.engine.executor;
-import org.onap.policy.apex.context.ContextException;
import org.onap.policy.apex.core.engine.ExecutorParameters;
import org.onap.policy.apex.core.engine.executor.exception.StateMachineException;
import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
* @param executionId the execution ID of the current APEX execution policy thread
* @param incomingEntity the incoming entity that triggers execution
* @return The outgoing entity that is the result of execution
- * @throws StateMachineException on an execution error
- * @throws ContextException on context errors
+ * @throws ApexException on an execution error
*/
O execute(long executionId, I incomingEntity) throws ApexException;
*
* @param executionId the execution ID of the current APEX execution policy thread
* @param incomingEntity the incoming entity that triggers execution
- * @throws StateMachineException on an execution error
- * @throws ContextException on context errors
+ * @throws ApexException on an execution error
*/
void executePre(long executionId, I incomingEntity) throws ApexException;
*
* @param returnValue the return value indicates whether the execution was successful and, if it
* failed, how it failed
- * @throws StateMachineException on an execution error
- * @throws ContextException On context errors
+ * @throws ApexException on an execution error
*/
void executePost(boolean returnValue) throws ApexException;
* <a href="https://github.com/KetothXupack/stackoverflow-answers/tree/master/q39401083">
* https://github.com/KetothXupack/stackoverflow-answers/tree/master/q39401083</a><br>
*/
-@SuppressWarnings("restriction")
public class ClassBuilder {
// Logger for this class
private static final XLogger LOGGER = XLoggerFactory.getXLogger(ClassBuilder.class);