Jean-Sebastien Delfino wrote:
Raymond Feng wrote:
Hi,
OK. I understand it's used for isolation purposes now. I'm busy
fixing a build break now, would you please add the support for @Test,
@Before, @After, @BeforeClass and @AfterClass for JUnit 4.x using
reflections :-)?
Thanks,
Raymond
----- Original Message ----- From: "Jean-Sebastien Delfino"
<[EMAIL PROTECTED]>
To: <tuscany-dev@ws.apache.org>
Sent: Thursday, March 08, 2007 11:44 AM
Subject: Re: [sca-java-integration-branch] Moving to
maven-surefire-plugin 2.3 and JUnit 4.2
[snip]
Raymond Feng wrote:
2) When I try to port the SCATestCaseRunner to support JUnit 4.x
annotations, I found it fairly cumbersome to use java reflection to
access org.junit.* classes and annotations. Can we add JUnit as a
compile time dependency? If we don't like to have it in the core,
maybe we should keep it in the "tuscany-test" module.
Thanks,
Raymond
The runner is using reflection to allow the test case to be loaded
and executed in a completely isolated classloader, sharing only the
JRE with the classloader used to load the runner. Adding a compile
dependency to junit will not help here, but there may be a better
way to avoid reflection. Any thoughts?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
OK I'll take care of it then.
I made the changes to support Junit4 and removed all dependencies on the
old Junit3 based SCATestCase class and the tuscany-test module. Both
Junit3 style (extending junit.framework.TestCase) and Junit4 style
(using junit.org.* annotations) test cases are supported.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]