Skip to content

Commit

Permalink
oehf#15, oehf#18: incorporated mock implementation as backend service…
Browse files Browse the repository at this point in the history
…s for PDQ queries, Renamed two unit tests which were actually integration tests. Now running smoothly against the PDQ mocks :-)
  • Loading branch information
bmehner committed Jul 4, 2012
1 parent 601a4ff commit 1045588
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
bin
target
velocity.log
gc.log
58 changes: 58 additions & 0 deletions modules/coala-ipf/coala-ipf-pdq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,63 @@
<groupId>org.openehealth.ipf.commons</groupId>
<artifactId>ipf-commons-ihe-core</artifactId>
</dependency>
<dependency>
<groupId>org.openehealth.coala</groupId>
<artifactId>coala-mocks</artifactId>
<version>0.1-SNAPSHOT</version>
<classifier>jar-with-dependencies</classifier>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
<configuration>
<tasks>
<java fork="true" spawn="true" classpathref="maven.runtime.classpath" className="org.openehealth.coala.mocks.MainMock"/>
</tasks>
</configuration>
<executions>
<execution>
<id>run-mocks</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<executable>java</executable>
<arguments>
<argument>-Xms512m</argument>
<argument>-Xmx512m</argument>
<argument>-XX:NewRatio=3</argument>
<argument>-XX:+PrintGCTimeStamps</argument>
<argument>-XX:+PrintGCDetails</argument>
<argument>-Xloggc:gc.log</argument>
<argument>-classpath</argument>
<classpath/>
<argument>org.openehealth.coala.mocks.MainMock</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>run-mocks</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/META-INF/coala-pdq-test-context.xml" })
public class PDQGateTest implements PDQTestConstants {
public class PDQGateIT implements PDQTestConstants {

@Autowired
private PDQGate pdqGate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/META-INF/coala-pdq-test-context.xml" })
public class PDQMessageTest implements PDQTestConstants{
public class PDQMessageIT implements PDQTestConstants{

private static final Logger LOG = org.slf4j.LoggerFactory
.getLogger(PDQMessageTest.class);
.getLogger(PDQMessageIT.class);

@Autowired
private PDQTransactor pdqTransactor;
Expand Down

0 comments on commit 1045588

Please sign in to comment.