Commit d0a60979 authored by acoburn's avatar acoburn
Browse files

clean up tests

parent 51ad0ea3
...@@ -18,7 +18,6 @@ package edu.amherst.acdc.exts.template; ...@@ -18,7 +18,6 @@ package edu.amherst.acdc.exts.template;
import static org.apache.camel.component.mustache.MustacheConstants.MUSTACHE_RESOURCE_URI; import static org.apache.camel.component.mustache.MustacheConstants.MUSTACHE_RESOURCE_URI;
import static org.apache.camel.Exchange.CONTENT_TYPE; import static org.apache.camel.Exchange.CONTENT_TYPE;
import static org.apache.camel.Exchange.HTTP_METHOD; import static org.apache.camel.Exchange.HTTP_METHOD;
import static org.apache.camel.Exchange.HTTP_PATH;
import static org.apache.camel.Exchange.HTTP_QUERY; import static org.apache.camel.Exchange.HTTP_QUERY;
import static org.apache.camel.Exchange.HTTP_URI; import static org.apache.camel.Exchange.HTTP_URI;
import static org.apache.camel.Exchange.HTTP_RESPONSE_CODE; import static org.apache.camel.Exchange.HTTP_RESPONSE_CODE;
......
...@@ -77,8 +77,6 @@ public class AcrepoTemplateIT extends AbstractOSGiIT { ...@@ -77,8 +77,6 @@ public class AcrepoTemplateIT extends AbstractOSGiIT {
.versionAsInProject().classifier("features").type("xml"), "scr"), .versionAsInProject().classifier("features").type("xml"), "scr"),
features(maven().groupId("org.apache.camel.karaf").artifactId("apache-camel") features(maven().groupId("org.apache.camel.karaf").artifactId("apache-camel")
.type("xml").classifier("features").versionAsInProject()), .type("xml").classifier("features").versionAsInProject()),
features(maven().groupId("org.fcrepo.camel").artifactId("fcrepo-camel")
.type("xml").classifier("features").versionAsInProject()),
features(maven().groupId("org.fcrepo.camel").artifactId("toolbox-features") features(maven().groupId("org.fcrepo.camel").artifactId("toolbox-features")
.type("xml").classifier("features").versionAsInProject()), .type("xml").classifier("features").versionAsInProject()),
features(maven().groupId("edu.amherst.acdc").artifactId("acrepo-karaf") features(maven().groupId("edu.amherst.acdc").artifactId("acrepo-karaf")
...@@ -102,7 +100,6 @@ public class AcrepoTemplateIT extends AbstractOSGiIT { ...@@ -102,7 +100,6 @@ public class AcrepoTemplateIT extends AbstractOSGiIT {
@Test @Test
public void testInstallation() throws Exception { public void testInstallation() throws Exception {
assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-core"))); assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-core")));
assertTrue(featuresService.isInstalled(featuresService.getFeature("fcrepo-camel")));
assertTrue(featuresService.isInstalled(featuresService.getFeature("acrepo-exts-template"))); assertTrue(featuresService.isInstalled(featuresService.getFeature("acrepo-exts-template")));
assertTrue(featuresService.isInstalled(featuresService.getFeature("acrepo-exts-ldpath"))); assertTrue(featuresService.isInstalled(featuresService.getFeature("acrepo-exts-ldpath")));
} }
...@@ -124,8 +121,7 @@ public class AcrepoTemplateIT extends AbstractOSGiIT { ...@@ -124,8 +121,7 @@ public class AcrepoTemplateIT extends AbstractOSGiIT {
"INSERT { <> dcterms:title \"Title\" ; dcterms:description \"A description: " + url + "\" } " + "INSERT { <> dcterms:title \"Title\" ; dcterms:description \"A description: " + url + "\" } " +
"WHERE {}"); "WHERE {}");
final String id = url.replace(baseUrl, ""); final String html = get(baseSvcUrl + "?context=" + url);
final String html = get(baseSvcUrl + id);
assertTrue(html.contains("<title>Title</title>")); assertTrue(html.contains("<title>Title</title>"));
assertTrue(html.contains("<h1>Fedora Template Service: Title</h1>")); assertTrue(html.contains("<h1>Fedora Template Service: Title</h1>"));
assertTrue(html.contains("<p>A description: " + url + "</p>")); assertTrue(html.contains("<p>A description: " + url + "</p>"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment