Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoho committed Jul 2, 2024
1 parent 625bb76 commit dc103f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/test/java/edu/ucsd/sbrg/db/BiGGDBTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
@Testcontainers
public class BiGGDBTest extends BiGGDBContainerTest {

@BeforeEach
public void setup() {
BiGGDB.init(bigg.getHost(), bigg.getFirstMappedPort().toString(), "postgres", "postgres", "bigg");
}

@Container
public GenericContainer bigg = new GenericContainer(DockerImageName.parse("schmirgel/bigg_db:1.6"))
.withExposedPorts(5432)
.withEnv("POSTGRES_PASSWORD", "postgres")
.withStartupTimeout(Duration.ofMinutes(5));

@Test
public void getSubsystems() {
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/edu/ucsd/sbrg/db/QueryOnceTest.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package edu.ucsd.sbrg.db;

import edu.ucsd.sbrg.bigg.annotation.BiGGDBContainerTest;
import org.junit.jupiter.api.Test;

import java.util.Set;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class QueryOnceTest extends BiGGDBTest {
public class QueryOnceTest extends BiGGDBContainerTest {

/**
* This test serves primarily as documentation and to to raise awareness for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static edu.ucsd.sbrg.TestUtils.initParameters;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class COBRAParserTest {
public class COBRAParserTest {

/**
* This is here to call the static initializer code of the Registry class,
Expand Down

0 comments on commit dc103f8

Please sign in to comment.