Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmedinaebi committed Sep 11, 2024
1 parent 059a711 commit b3a06d9
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import uk.ac.ebi.intact.core.unit.IntactMockBuilder;
import uk.ac.ebi.intact.dbupdate.bioactiveentity.utils.BioActiveEntityUtils;
import uk.ac.ebi.intact.model.*;
Expand All @@ -16,6 +20,12 @@
* Date: 24/05/2013
* Time: 10:44
*/
@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource(locations="classpath:/retry.properties")
@ContextConfiguration(locations = {
"classpath*:/META-INF/intact.spring.xml",
"classpath*:/META-INF/standalone/*-standalone.spring.xml"
})
public class BioActiveEntityServiceImplTest {

private BioActiveEntityService bioActiveEntityService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import junit.framework.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import uk.ac.ebi.intact.model.*;

/**
Expand All @@ -10,7 +14,12 @@
* Date: 24/05/2013
* Time: 11:18
*/

@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource(locations="classpath:/retry.properties")
@ContextConfiguration(locations = {
"classpath*:/META-INF/intact.spring.xml",
"classpath*:/META-INF/standalone/*-standalone.spring.xml"
})
public class BioActiveEntityUtilsTest {
@Test
public void testGetInstitution() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
update.report=reports

retry.maxAttempts=5
retry.multiplier=2
retry.maxDelay=5000
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import uk.ac.ebi.intact.model.Interactor;

import java.util.List;
Expand All @@ -15,6 +19,12 @@
* Time: 17:15
* To change this template use File | Settings | File Templates.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource(locations="classpath:/retry.properties")
@ContextConfiguration(locations = {
"classpath*:/META-INF/intact.spring.xml",
"classpath*:/META-INF/standalone/*-standalone.spring.xml"
})
public class GeneServiceImplTest {

private GeneServiceImpl geneService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import junit.framework.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import uk.ac.ebi.intact.model.*;

/**
Expand All @@ -11,6 +15,12 @@
* Time: 11:16
* To change this template use File | Settings | File Templates.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource(locations="classpath:/retry.properties")
@ContextConfiguration(locations = {
"classpath*:/META-INF/intact.spring.xml",
"classpath*:/META-INF/standalone/*-standalone.spring.xml"
})
public class GeneUtilsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;
import uk.ac.ebi.intact.update.persistence.dao.UpdateDaoFactory;
Expand All @@ -20,6 +21,7 @@
* @since <pre>20-May-2010</pre>
*/
@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource(locations="classpath:/retry.properties")
@ContextConfiguration(locations = {
"classpath*:/META-INF/update-jpa.spring.xml",
"classpath*:/META-INF/standalone/*-standalone.spring.xml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.sql.DataSource;
Expand All @@ -20,6 +21,7 @@
"classpath*:/META-INF/db-update-test.spring.xml",
"classpath*:/META-INF/intact.spring.xml"
})
@TestPropertySource(locations="classpath:/retry.properties")
public class SchemaUtilsTest {

@Autowired
Expand Down

0 comments on commit b3a06d9

Please sign in to comment.