You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2013/07/31 16:47:48 UTC
[jira] [Created] (ARIES-1091) have a JUnit runner for blueprint-web
like the spring test runners that create a BlueprintContainer and inject
values from the container into the test case
james strachan created ARIES-1091:
-------------------------------------
Summary: have a JUnit runner for blueprint-web like the spring test runners that create a BlueprintContainer and inject values from the container into the test case
Key: ARIES-1091
URL: https://issues.apache.org/jira/browse/ARIES-1091
Project: Aries
Issue Type: Improvement
Components: Blueprint
Reporter: james strachan
it'd be nice to be able to write simple stand alone JUnit test cases that take a blueprint.xml file (by default called $ClassName-blueprint.xml) and inject values from the container. e.g.
{code}
@RunWith(BlueprintJUnitTestRunner.class)
public class MyTest {
@Inject BlueprintContainer blueprintContainer;
@Inject Cheese cheese;
@Test
public void doTest() {
// use the injected values
}
}
{code}
using the @Inject annotations from JSR 330
http://jcp.org/en/jsr/detail?id=330
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira