mirror of https://github.com/apache/openjpa.git
removed unintentionally-added tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@628109 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3735e9a54e
commit
1b74811ed9
|
@ -1,29 +0,0 @@
|
|||
import javax.persistence.EntityManager;
|
||||
import javax.persistence.EntityManagerFactory;
|
||||
import javax.persistence.Persistence;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class BrokerImplInitialization extends TestCase {
|
||||
|
||||
public void testInitialization() {
|
||||
EntityManagerFactory emf = Persistence.createEntityManagerFactory(null);
|
||||
emf.createEntityManager().close(); // initialization
|
||||
long start = System.currentTimeMillis();
|
||||
int count = 100000;
|
||||
int hash = 0;
|
||||
Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
|
||||
for(int i = 0; i < count; i++) {
|
||||
if (i % 10000 == 0)
|
||||
System.out.printf("starting iteration %d after %d millis.\n",
|
||||
i, System.currentTimeMillis() - start);
|
||||
EntityManager em = emf.createEntityManager();
|
||||
hash |= em.hashCode();
|
||||
em.close();
|
||||
}
|
||||
System.out.printf("took %d millis to complete %d runs.\n",
|
||||
System.currentTimeMillis() - start, count);
|
||||
System.out.println("hash: " + hash);
|
||||
emf.close();
|
||||
}
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
import org.apache.openjpa.kernel.TestEnhancedInstanceBrokerSerialization;
|
||||
import org.apache.openjpa.kernel.TestEntityManagerFactoryPool;
|
||||
import org.apache.openjpa.kernel.TestInstanceGraphBrokerSerialization;
|
||||
import org.apache.openjpa.kernel.TestUnenhancedFieldAccessInstanceBrokerSerialization;
|
||||
import org.apache.openjpa.kernel.TestUnenhancedFieldAccessWithRelationInstanceBrokerSerialization;
|
||||
import org.apache.openjpa.kernel.TestUnenhancedPropertyAccessInstanceBrokerSerialization;
|
||||
import org.apache.openjpa.kernel.TestUnenhancedPropertyAccessWithRelationInstanceBrokerSerialization;
|
||||
|
||||
public class CurrentTests extends TestSuite {
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite("Current Tests");
|
||||
suite.addTestSuite(TestEnhancedInstanceBrokerSerialization.class);
|
||||
suite.addTestSuite(TestInstanceGraphBrokerSerialization.class);
|
||||
suite.addTestSuite(
|
||||
TestUnenhancedFieldAccessWithRelationInstanceBrokerSerialization.class);
|
||||
suite.addTestSuite(
|
||||
TestUnenhancedPropertyAccessWithRelationInstanceBrokerSerialization.class);
|
||||
suite.addTestSuite(
|
||||
TestUnenhancedFieldAccessInstanceBrokerSerialization.class);
|
||||
suite.addTestSuite(
|
||||
TestUnenhancedPropertyAccessInstanceBrokerSerialization.class);
|
||||
|
||||
// suite.addTestSuite(TestPCSubclassNameConversion.class);
|
||||
// suite.addTestSuite(ManagedCacheTest.class);
|
||||
suite.addTestSuite(TestEntityManagerFactoryPool.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue