Skip to content

Commit

Permalink
refs #3
Browse files Browse the repository at this point in the history
  • Loading branch information
rmpestano committed Jul 31, 2015
1 parent e6953ab commit fda9ea4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private void init(String unitName) {
}

}
em.clear();
emf.getCache().evictAll();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void tearDown() throws SQLException {

}

/* @Test
@Test
public void shouldSeedDataSetDisablingContraints() {
for (DataSetExecutor executor : executors) {
DataSetModel dataSetModel = new DataSetModel("datasets/yml/users.yml").disableConstraints(true);
Expand Down Expand Up @@ -130,7 +130,7 @@ public void shouldLoadUserFollowers() {
assertThat(user.getFollowers()).contains(expectedFollower);
}

}*/
}

@Test
public void shouldLoadUsersFromJsonDataset() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@ public class EntityManagerProvider implements TestRule {

private Connection conn;

private Map<String, Object> emfProps;

private static Logger log = LoggerFactory.getLogger(EntityManagerProvider.class);

private static EntityManagerProvider instance;

private EntityManagerProvider() {
}

public static EntityManagerProvider instance(String unitName) {
public static synchronized EntityManagerProvider instance(String unitName) {
if (instance == null) {
instance = new EntityManagerProvider();
}
Expand Down

0 comments on commit fda9ea4

Please sign in to comment.