Hi,
I ran into some test case failures with the trunk code in both Eclipse and
Maven (reported by my continumm build) related to the usage of java
assertions.
For example, in test case
org.apache.tuscany.spi.extension.ReferenceTestCase, we have the following
test:
public void
, assertions
should not alter normal program execution.
I think I buy what the author says.
Thanks,
Raymond
- Original Message -
From: Yang ZHONG [EMAIL PROTECTED]
To: tuscany-dev@ws.apache.org
Sent: Thursday, July 20, 2006 3:11 PM
Subject: Re: Java assertion related test case failures
I
@ws.apache.org
Sent: Thursday, July 20, 2006 3:11 PM
Subject: Re: Java assertion related test case failures
I hope our code are not designated to run in some specifically
configured
JVM.
Since JVMs may turn assertion on or off, I'm not sure
AssertionError should
be an expected behavior
to
be launched with -ea. Making sense?
Thanks,
Raymond
- Original Message -
From: Jeremy Boynes [EMAIL PROTECTED]
To: tuscany-dev@ws.apache.org
Sent: Thursday, July 20, 2006 4:00 PM
Subject: Re: Java assertion related test case failures
We covered assertions a little in the exception
assertion related test case failures
I hope our code are not designated to run in some specifically
configured
JVM.
Since JVMs may turn assertion on or off, I'm not sure
AssertionError should
be an expected behavior in general.
Dedicated exceptions and errors are much better protocol, e.g
If you like my previous proposal, here's the patch I tried.
Thanks,
Raymond
- Original Message -
From: Raymond Feng [EMAIL PROTECTED]
To: tuscany-dev@ws.apache.org
Sent: Thursday, July 20, 2006 4:14 PM
Subject: Re: Java assertion related test case failures
If the purpose of the test
: Jeremy Boynes [EMAIL PROTECTED]
To: tuscany-dev@ws.apache.org
Sent: Thursday, July 20, 2006 4:37 PM
Subject: Re: Java assertion related test case failures
On Jul 20, 2006, at 4:14 PM, Raymond Feng wrote:
If the purpose of the test case is to verify the assert, I suggest
that we use
-dev@ws.apache.org
Sent: Thursday, July 20, 2006 4:37 PM
Subject: Re: Java assertion related test case failures
On Jul 20, 2006, at 4:14 PM, Raymond Feng wrote:
If the purpose of the test case is to verify the assert, I
suggest that we use ClassLoader.setClassAssertionStatus
(targetClassName