Skip to content

Commit

Permalink
Merge pull request #51 from slub/fcrepo-1341
Browse files Browse the repository at this point in the history
Rename dynamic build properties for clarity
Partial resolution of: https://jira.duraspace.org/browse/FCREPO-1341
  • Loading branch information
Andrew Woods committed Feb 16, 2015
2 parents f3d95ae + f4f9e4b commit f883790
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions pom.xml
Expand Up @@ -434,7 +434,7 @@
</systemProperties>
<scanIntervalSeconds>10</scanIntervalSeconds>
<stopKey>STOP</stopKey>
<stopPort>${jetty.port.stop}</stopPort>
<stopPort>${jetty.dynamic.stop.port}</stopPort>
<daemon>true</daemon>
</configuration>
<dependencies>
Expand All @@ -459,7 +459,7 @@
</goals>
<configuration>
<httpConnector>
<port>${test.solr.port}</port>
<port>${solr.dynamic.test.port}</port>
</httpConnector>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
Expand Down Expand Up @@ -515,10 +515,10 @@
<version>1.9.1</version>
<configuration>
<portNames>
<portName>test.port</portName>
<portName>test.fuseki.port</portName>
<portName>test.solr.port</portName>
<portName>jetty.port.stop</portName>
<portName>fcrepo.dynamic.test.port</portName>
<portName>fuseki.dynamic.test.port</portName>
<portName>solr.dynamic.test.port</portName>
<portName>jetty.dynamic.stop.port</portName>
</portNames>
</configuration>
<executions>
Expand Down Expand Up @@ -555,9 +555,9 @@
<configuration>
<argLine>-XX:MaxPermSize=128m ${jacoco.agent.it.arg}</argLine>
<systemPropertyVariables>
<test.port>${test.port}</test.port>
<test.fuseki.port>${test.fuseki.port}</test.fuseki.port>
<test.solr.port>${test.solr.port}</test.solr.port>
<fcrepo.dynamic.test.port>${fcrepo.dynamic.test.port}</fcrepo.dynamic.test.port>
<fuseki.dynamic.test.port>${fuseki.dynamic.test.port}</fuseki.dynamic.test.port>
<solr.dynamic.test.port>${solr.dynamic.test.port}</solr.dynamic.test.port>
</systemPropertyVariables>
</configuration>
<executions>
Expand Down
Expand Up @@ -125,7 +125,7 @@ protected RouteBuilder createRouteBuilder() {
public void configure() {
final String fcrepo_uri = FcrepoTestUtils.getFcrepoEndpointUri();
final String solr_uri = "http4://localhost:" + System.getProperty(
"test.solr.port", "8983") + "/solr/testCore/update";
"solr.dynamic.test.port", "8983") + "/solr/testCore/update";

from("direct:setup")
.to(fcrepo_uri);
Expand Down
10 changes: 5 additions & 5 deletions src/test/java/org/fcrepo/camel/integration/FcrepoSparqlIT.java
Expand Up @@ -60,7 +60,7 @@ public class FcrepoSparqlIT extends CamelTestSupport {
final private Logger logger = getLogger(FcrepoSparqlIT.class);

private static final int FUSEKI_PORT = Integer.parseInt(System.getProperty(
"test.fuseki.port", "3030"));
"fuseki.dynamic.test.port", "3030"));

private static EmbeddedFusekiServer server = null;

Expand Down Expand Up @@ -114,7 +114,7 @@ public void testUpdateSparql() throws Exception {
"direct:setup", FcrepoTestUtils.getTurtleDocument(), headers, String.class);

final String identifier = fullPath.replaceAll(FcrepoTestUtils.getFcrepoBaseUrl(), "");
final String base_url = "http://localhost:" + System.getProperty("test.port", "8080") + "/rest";
final String base_url = "http://localhost:" + System.getProperty("fcrepo.dynamic.test.port", "8080") + "/rest";

// Test
final Map<String, Object> testHeaders = new HashMap<String, Object>();
Expand Down Expand Up @@ -163,7 +163,7 @@ public void testInsertDeleteSparql() throws Exception {
"direct:setup", FcrepoTestUtils.getTurtleDocument(), headers, String.class);

final String identifier = fullPath.replaceAll(FcrepoTestUtils.getFcrepoBaseUrl(), "");
final String base_url = "http://localhost:" + System.getProperty("test.port", "8080") + "/rest";
final String base_url = "http://localhost:" + System.getProperty("fcrepo.dynamic.test.port", "8080") + "/rest";

// Test
final Map<String, Object> testHeaders = new HashMap<String, Object>();
Expand Down Expand Up @@ -217,7 +217,7 @@ public void testInsertDeleteNamedGraphSparql() throws Exception {
"direct:setup", FcrepoTestUtils.getTurtleDocument(), headers, String.class);

final String identifier = fullPath.replaceAll(FcrepoTestUtils.getFcrepoBaseUrl(), "");
final String base_url = "http://localhost:" + System.getProperty("test.port", "8080") + "/rest";
final String base_url = "http://localhost:" + System.getProperty("fcrepo.dynamic.test.port", "8080") + "/rest";

// Test
final Map<String, Object> testHeaders = new HashMap<String, Object>();
Expand Down Expand Up @@ -253,7 +253,7 @@ protected RouteBuilder createRouteBuilder() throws Exception {
public void configure() throws IOException {

final String fcrepo_uri = FcrepoTestUtils.getFcrepoEndpointUri();
final String fuseki_url = "localhost:" + System.getProperty("test.fuseki.port", "3030");
final String fuseki_url = "localhost:" + System.getProperty("fuseki.dynamic.test.port", "3030");
final Processor sparqlInsert = new SparqlInsertProcessor();
final Namespaces ns = new Namespaces("rdf", RdfNamespaces.RDF);
ns.add("dc", "http://purl.org/dc/elements/1.1/");
Expand Down
Expand Up @@ -26,7 +26,7 @@
public final class FcrepoTestUtils {

private static final int FCREPO_PORT = parseInt(getProperty(
"test.port", "8080"));
"fcrepo.dynamic.test.port", "8080"));

/**
* This is a utility class; the constructor is off-limits
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/spring-test/test-container.xml
Expand Up @@ -8,7 +8,7 @@
<context:property-placeholder/>

<bean id="containerWrapper" class="org.fcrepo.http.commons.test.util.ContainerWrapper" init-method="start" destroy-method="stop" >
<property name="port" value="${test.port:8080}"/>
<property name="port" value="${fcrepo.dynamic.test.port:8080}"/>
<property name="configLocation" value="classpath:web.xml" />
</bean>

Expand Down

0 comments on commit f883790

Please sign in to comment.