Skip to content

Commit

Permalink
removing the dead jaxb code
Browse files Browse the repository at this point in the history
  • Loading branch information
barmintor committed Jun 12, 2013
1 parent 9bbcd61 commit 609fda0
Showing 1 changed file with 11 additions and 9 deletions.
Expand Up @@ -9,14 +9,16 @@
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;

import org.fcrepo.auth.oauth.integration.api.bind.ContextParam;
import org.fcrepo.auth.oauth.integration.api.bind.FilterMapping;
import org.fcrepo.auth.oauth.integration.api.bind.Listener;
import org.fcrepo.auth.oauth.integration.api.bind.ServletMapping;
import org.fcrepo.webxml.WebAppConfig;
import org.fcrepo.webxml.bind.ContextParam;
import org.fcrepo.webxml.bind.FilterMapping;
import org.fcrepo.webxml.bind.Listener;
import org.fcrepo.webxml.bind.ServletMapping;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TestBinding {

private final Logger LOGGER = LoggerFactory.getLogger(TestBinding.class);
Expand All @@ -30,17 +32,17 @@ public void testBinding() throws JAXBException {
(WebAppConfig) u.unmarshal(getClass().getResourceAsStream(
"/web.xml"));
assertEquals("Fedora-on-ModeShape", o.displayName());
assertTrue(o.contextParams.contains(new ContextParam(
assertTrue(o.contextParams().contains(new ContextParam(
"contextConfigLocation", "classpath:spring-test/rest.xml; "
+ "classpath:spring-test/repo.xml; "
+ "classpath:spring-test/security.xml")));
assertTrue(o.contextParams.contains(new ContextParam(
assertTrue(o.contextParams().contains(new ContextParam(
"org.modeshape.jcr.RepositoryName", "repo")));
assertTrue(o.contextParams.contains(new ContextParam(
assertTrue(o.contextParams().contains(new ContextParam(
"org.modeshape.jcr.URL", "/test_repository.json")));
assertTrue(o.listeners.contains(new Listener(null,
assertTrue(o.listeners().contains(new Listener(null,
"org.springframework.web.context.ContextLoaderListener")));
assertTrue(o.listeners.contains(new Listener(null,
assertTrue(o.listeners().contains(new Listener(null,
"org.modeshape.web.jcr.ModeShapeJcrDeployer")));
final ServletMapping sm =
o.servletMappings("jersey-servlet").iterator().next();
Expand Down

0 comments on commit 609fda0

Please sign in to comment.