Commit afe9ee0b authored by bseeger's avatar bseeger
Browse files

Fixes osgi.jndi.service names for some unit tests requiring

other services to be present (mocked) in order to run.
parent 119869c0
......@@ -39,7 +39,8 @@ public class RouteTest extends CamelBlueprintTestSupport {
@Override
protected void addServicesOnStartup(final Map<String, KeyValueHolder<Object, Dictionary>> services) {
services.put(JsonLdService.class.getName(), asService(new JsonLdServiceImpl(), "name", "jsonld"));
services.put(JsonLdService.class.getName(), asService(new JsonLdServiceImpl(),
"osgi.jndi.service.name", "acrepo/JsonLD"));
}
@Test
......
......@@ -39,7 +39,8 @@ public class RouteTest extends CamelBlueprintTestSupport {
@Override
protected void addServicesOnStartup(final Map<String, KeyValueHolder<Object, Dictionary>> services) {
services.put(PcdmService.class.getName(), asService(new PcdmServiceImpl(), "name", "pcdm"));
services.put(PcdmService.class.getName(), asService(new PcdmServiceImpl(),
"osgi.jndi.service.name", "acrepo/Pcdm"));
}
@Test
......
......@@ -15,12 +15,19 @@
*/
package edu.amherst.acdc.exts.template;
import java.util.Dictionary;
import java.util.Map;
import edu.amherst.acdc.services.jsonld.JsonLdService;
import edu.amherst.acdc.services.jsonld.JsonLdServiceImpl;
import org.apache.camel.EndpointInject;
import org.apache.camel.Produce;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.AdviceWithRouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.blueprint.CamelBlueprintTestSupport;
import org.apache.camel.util.KeyValueHolder;
import org.junit.Test;
......@@ -50,6 +57,12 @@ public class RouteTest extends CamelBlueprintTestSupport {
return false;
}
@Override
protected void addServicesOnStartup(final Map<String, KeyValueHolder<Object, Dictionary>> services) {
services.put(JsonLdService.class.getName(), asService(new JsonLdServiceImpl(),
"osgi.jndi.service.name", "acrepo/JsonLD"));
}
@Test
public void testRoute() throws Exception {
......
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