blob: 32ea931eb41293a034883f99ce73a9ca1dd6ac5e [file] [log] [blame]
/*
* Copyright (c) 2012, 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
//
package org.eclipse.persistence.jpa.tests.jpql.parser;
import junit.extensions.ActiveTestSuite;
import junit.framework.JUnit4TestAdapter;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.persistence.jpa.jpql.parser.EclipseLinkJPQLGrammar2_5;
import org.eclipse.persistence.jpa.jpql.parser.JPQLGrammar;
import org.junit.runner.RunWith;
import org.junit.runners.AllTests;
/**
* This test suite runs {@link JPQLParserConcurrentTest} many times and concurrently, this is trying to
* test using the parser concurrently and making sure there is no deadlock or a
* {@link java.util.ConcurrentModificationException} thrown by some {@link java.util.Collection} classes.
*
* @version 2.4.1
* @since 2.4.1
* @author Pascal Filion
*/
@RunWith(AllTests.class)
public final class AllJPQLParserConcurrentTests {
static final JPQLGrammar jpqlGrammar = new EclipseLinkJPQLGrammar2_5();
private AllJPQLParserConcurrentTests() {
super();
}
public static Test suite() {
TestSuite suite = new ActiveTestSuite();
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
suite.addTest(new JUnit4TestAdapter(JPQLParserConcurrentTest.class));
return suite;
}
}