- Revision
- 953
- Author
- mauro
- Date
- 2008-09-29 01:44:54 -0500 (Mon, 29 Sep 2008)
Log Message
Fixed resource paths.
Modified Paths
Diff
Modified: trunk/jbehave-core/src/behaviour/org/jbehave/container/spring/SpringContainerBehaviour.java (952 => 953)
--- trunk/jbehave-core/src/behaviour/org/jbehave/container/spring/SpringContainerBehaviour.java 2008-09-28 16:36:52 UTC (rev 952) +++ trunk/jbehave-core/src/behaviour/org/jbehave/container/spring/SpringContainerBehaviour.java 2008-09-29 06:44:54 UTC (rev 953) @@ -21,25 +21,25 @@ @Test public void canGetComponentByKey() { - Container container = new SpringContainer("/org/jbehave/container/spring/components.xml"); + Container container = new SpringContainer("org/jbehave/container/spring/components.xml"); assertNotNull(container.getComponent(AComponent.class, "a-component")); } @Test(expected = ComponentNotFoundException.class) public void cannotGetComponentByInexistentKey() { - Container container = new SpringContainer("/org/jbehave/container/spring/components.xml"); + Container container = new SpringContainer("org/jbehave/container/spring/components.xml"); container.getComponent(AComponent.class, "inexistent-key"); } @Test public void canGetComponentByType() { - Container container = new SpringContainer("/org/jbehave/container/spring/components.xml"); + Container container = new SpringContainer("org/jbehave/container/spring/components.xml"); assertNotNull(container.getComponent(AnotherComponent.class)); } //[EMAIL PROTECTED] public void canGetComponentsWithCustomClassLoader() { - Container container = new SpringContainer("/org/jbehave/container/spring/components.xml", Thread + Container container = new SpringContainer("org/jbehave/container/spring/components.xml", Thread .currentThread().getContextClassLoader()); assertNotNull(container.getComponent(AComponent.class)); assertNotNull(container.getComponent(AnotherComponent.class)); @@ -47,12 +47,12 @@ @Test(expected = InvalidContainerException.class) public void cannotGetComponentsWithInvalidClassLoader() throws MalformedURLException { - new SpringContainer("/org/jbehave/container/spring/components.xml", new InvalidClassLoader()); + new SpringContainer("org/jbehave/container/spring/components.xml", new InvalidClassLoader()); } @Test(expected = ComponentNotFoundException.class) public void cannotGetComponentWithNoneConfigured() { - Container container = new SpringContainer("/org/jbehave/container/spring/no-components.xml"); + Container container = new SpringContainer("org/jbehave/container/spring/no-components.xml"); container.getComponent(AComponent.class); }
To unsubscribe from this list please visit:
