/******************************************************************************* * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * 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 JPQLParserThreadTest} 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 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; } }