Skip to content

Commit

Permalink
#11 Integrate Travis-CI and add build pass badge
Browse files Browse the repository at this point in the history
Avoid reusing spring contexts between test runs
  • Loading branch information
vladmihalcea committed Jun 30, 2015
1 parent 9a59d75 commit 30f0f32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -4,14 +4,14 @@
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.annotation.DirtiesContext;

import javax.annotation.Resource;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;

import static org.junit.Assert.*;

Expand All @@ -20,6 +20,7 @@
*
* @author Vlad Mihalcea
*/
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS)
public abstract class AbstractPoolAdapterIntegrationTest {

private static final Logger LOGGER = LoggerFactory.getLogger(AbstractPoolAdapterIntegrationTest.class);
Expand Down
Expand Up @@ -4,6 +4,7 @@
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;
import org.springframework.transaction.support.TransactionTemplate;
Expand All @@ -21,6 +22,7 @@
*
* @author Vlad Mihalcea
*/
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS)
public abstract class AbstractFlexyPoolHibernateConnectionProviderIntegrationTest {

@PersistenceContext(unitName = "persistenceUnit")
Expand Down

0 comments on commit 30f0f32

Please sign in to comment.