|
From: David S. <da...@sa...> - 2010-07-28 15:02:36
|
On Wed, Jul 28, 2010 at 10:13 AM, Johannes Schneider
<mai...@ce...> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/23/2010 09:53 PM, David Saff wrote:
>> Johannes,
>>
>> Sorry to be so long in getting back to you.
>
> No problem. But can you tell me where the devs are discussing?
The junit-devel list (cc'ed) is the best location for e-mail
discussion. Most discussion between Kent and I is by voice, however.
> I have some ideas I'd like to share with them.
>
>> Have you opened a bug on github?
>
> will do that.
>
>
> Johannes
>
>>
>> David Saff
>>
>> On Sat, Jul 10, 2010 at 7:31 AM, Johannes Schneider
>> <mai...@ce...> wrote:
>> Hi guys,
>>
>> don't know where to post, so hopefully this list is the right one.
>>
>> I run into some problems related to Theories and DataPoints (with 4.8.1):
>>
>>
>> This test is marked as successfull but did *not* run:
>>
>> @RunWith( Theories.class )
>> public class TheoriesTest {
>> @Theory
>> public void aTheory( String arg ) {
>> System.out.println( "TheoriesTest.aTheory(" + arg + ")" );
>> assertNotNull( arg );
>> }
>>
>> @DataPoint
>> public String getParam() {
>> return "daParam";
>> }
>> }
>>
>>
>> I think the problem lies in Theories:126.
>> statement.evaluate() catches exceptions silently
>> (org.junit.experimental.theories.Theories.TheoryAnchor#methodCompletesWithParameters:158).
>>
>> Therefore "handleDataPointSuccess" is called even when an exception has
>> been thrown....
>>
>>
>>
>> So I think there are at least two things missing:
>> - Proper exception handling...
>> - Checking the DataPoint(s) methods for the static keyword
>>
>>
>> By the way: Why isn't it allowed to return Iterables or at least Lists
>> in @DataPoints methods?
>>
>>
>>
>> Thanks,
>>
>> Johannes
>>
>>>
> -
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Junit-devel mailing list
> Jun...@li...
> https://lists.sourceforge.net/lists/listinfo/junit-devel
>>>
>
> - --
> Johannes Schneider - blog.cedarsoft.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQEcBAEBAgAGBQJMUDsgAAoJEAytD9R7Qv6dZH8IAIgyiRFm6Hx5AjTGuQWsv7xO
> H3j3OJiHRXrb610pDlUpVj8iwlRspB0sR0PUEalxWeePpEZ7JPva/1j2JH8jnNHX
> +1VMNqsWFxCRvistvQvV/jLTKmWFSxOTXdgP4Q1lm6baXQPP6Dr342bEuDpWYnZp
> VacxMVRqScrCxyVt5yOSW0rkKxGmHOxjRrC8QeYAQJlVO+3BzmbbqqsL1C4QCCX9
> TROc9Ga1zAJlpSThqJd1PBBMVcDGTsNVECebrC9bGTWLzYRLxC6N9BkoFUaxkceG
> Q7G7h/cvn+QlV3VbmiY7hMGNul3oc3wjZ35e/TXDZcaA5+15HdKpby4zRkjFzME=
> =8I6j
> -----END PGP SIGNATURE-----
>
|