blob: 2fc5cae88d845dee162ba3baf2c0da8c7b3104d4 [file] [log] [blame]
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.testing.tests.events;
import org.eclipse.persistence.testing.models.events.AboutToInsertMultiTableObject;
import org.eclipse.persistence.testing.models.events.AboutToInsertSingleTableObject;
import org.eclipse.persistence.testing.framework.*;
/***
This suite tests the event hook features
***/
public class EventHookTestSuite extends TestSuite {
public EventHookTestSuite() {
setName("Event Hook Test Suite");
setDescription("This suite tests the pre and post delete/insert/update/write event hook features.");
}
public EventHookTestSuite(boolean isSRG) {
super(isSRG);
setName("Event Hook Test Suite");
setDescription("This suite tests the pre and post delete/insert/update/write event hook features.");
}
@Override
public void addTests() {
addSRGTests();
//Add new tests here, if any.
addTest(new PostCalculateUOWChangeSetEventTest());
}
//SRG test set is maintained by QA only, do NOT add any new tests into it.
@Override
public void addSRGTests() {
addTest(new UpdateEventHookTest());
addTest(new InsertEventHookTest());
addTest(new DeleteEventHookTest());
addTest(new WriteEventHookTest());
addTest(new RefreshEventHookTest());
addTest(new BuildEventHookTest());
addTest(new BuildOnRefreshEventHookTest());
addTest(new CloneAndMergeEventHookTest());
addTest(new CloneEventOnIsolatedSessionTest());
addTest(new SessionEventTestCase());
addTest(new SingleTableAboutToInsertTest(new AboutToInsertSingleTableObject(), false));
addTest(new MultipleTableAboutToInsertTest(new AboutToInsertMultiTableObject(), false));
addTest(new PreInsertModifyChangeSetTest());
addTest(new ObjectChangeSetUpdateAttributeTest());
addTest(new ObjectChangeSetEventTest());
addTest(new UpdateAttributeTest());
}
}