Permalink
Browse files

remove unread variables

  • Loading branch information...
1 parent 96eb55f commit b58b5b472129d873164b5b7df2d8b85cbe926af2 Jeff Lai committed Sep 14, 2011
@@ -26,24 +26,19 @@
package com.force.sdk.jpa;
-import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.*;
-import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import org.testng.Assert;
-import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.force.sdk.jpa.entities.PersonEntity;
import com.force.sdk.jpa.entities.PhoneEntity;
import com.force.sdk.jpa.query.QueryHints;
-import com.force.sdk.qa.util.TestContext;
import com.force.sdk.qa.util.jpa.BaseJPAFTest;
-import com.sforce.ws.ConnectionException;
/**
* This class tests:-
@@ -58,25 +53,6 @@
private static String personBName = "Person B";
private static String oldPhoneName = "oldPhoneName";
private static String newPhoneName = "new";
-
- EntityManager em2;
- EntityManager em3;
-
- @Override
- @BeforeClass
- public void initialize() throws IOException, ConnectionException {
- super.initialize();
- em2 = getAdditionalEntityManagers().get(TestContext.get().getPersistenceUnitName() + "2");
- em3 = getAdditionalEntityManagers().get(TestContext.get().getPersistenceUnitName() + "3");
- }
-
- @Override
- public Set<String> getAdditionalPersistenceUnitNames() {
- return new HashSet<String>(Arrays.asList(new String[] {
- TestContext.get().getPersistenceUnitName() + "2",
- TestContext.get().getPersistenceUnitName() + "3"
- }));
- }
@Test(enabled = false)
public void testEagerLoadingWithCascadedMergeAsPersist() throws MalformedURLException {
@@ -59,7 +59,6 @@
new OptimisticLockException("Some instances failed to flush successfully due to optimistic verification problems.");
protected int threadcount = 0;
- EntityManager em2;
EntityManager em3;
EntityManagerFactory emfac2;
EntityManagerFactory emfac3;
@@ -68,7 +67,6 @@
@BeforeClass(enabled = false)
public void initialize() throws IOException, ConnectionException {
super.initialize();
- em2 = getAdditionalEntityManagers().get(TestContext.get().getPersistenceUnitName() + "2");
em3 = getAdditionalEntityManagers().get(TestContext.get().getPersistenceUnitName() + "3");
emfac2 = TestContext.get().getEntityManagerFactoryMap().get(TestContext.get().getPersistenceUnitName() + "2");
emfac3 = TestContext.get().getEntityManagerFactoryMap().get(TestContext.get().getPersistenceUnitName() + "3");

0 comments on commit b58b5b4

Please sign in to comment.