Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Simone Tripodi
Guten morgen, > What do you mean with mixing behavior? myMethod(null, someParam) and > myMethod(someParam, null), both throwing NPE is essentially the same, isn't > it? sure, but while one success, the other fails, so to achieve your purpose that doesn't help ;) all the best, -Simo http://peopl

Re: [jira] [Resolved] (SANDBOX-363) Check if value is of the correct type in Argument.argument( Class type, V value )

2012-01-22 Thread Simone Tripodi
getParameterTypes is needed only when invoking constructors and methods, BeanAccessor doesn't ned to access to that method because the chain is on( myBean ).invokeMethod( "equals" ).withArguments( ... ) the `withArguments` call is not not in BeanAccessor http://people.apache.org/~simonetripodi/

[GUMP@vmgump]: Project commons-proxy-test (in module apache-commons) failed

2012-01-22 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-proxy-test has an issue affecting its community integration. This

[GUMP@vmgump]: Project commons-exec-test (in module apache-commons) failed

2012-01-22 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-exec-test has an issue affecting its community integration. This i

[GUMP@vmgump]: Project commons-digester3 (in module apache-commons) failed

2012-01-22 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-digester3 has an issue affecting its community integration. This i

[functor] CharacterRange, FloatRange, DoubleRange and open/closed intervals

2012-01-22 Thread Bruno P. Kinoshita
Hi all,  In functor, there are two ranges available: IntegerRange and LongRange. Both use a closed open interval, i.e., the low limit is included in the range, while the high limit is not.  In Perl, we can create a range of numbers too, using the range operator (..). Something like 0..10. What

Re: [jira] [Resolved] (SANDBOX-363) Check if value is of the correct type in Argument.argument( Class type, V value )

2012-01-22 Thread Benedikt Ritter
Am 22.01.2012 22:32, schrieb Simone Tripodi (Resolved) (JIRA): [ https://issues.apache.org/jira/browse/SANDBOX-363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simone Tripodi resolved SANDBOX-363. Resolution: Fixed

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Benedikt Ritter
Am 22.01.2012 21:56, schrieb Simone Tripodi: Hallo Benedikt No it isn't. As far as I know, your test will pass, when the first NullPointerException is thrown (this also applies to @Rule ExpectedException). If you have a method that takes two arguments that are not nullable and you write: @Tes

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Simone Tripodi
Hallo Benedikt > > No it isn't. As far as I know, your test will pass, when the first > NullPointerException is thrown (this also applies to @Rule > ExpectedException). If you have a method that takes two arguments that are > not nullable and you write: > > @Test(expected = NullPointerException.cl

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Benedikt Ritter
Am 22.01.2012 18:45, schrieb Christian Grobmeier: On Sun, Jan 22, 2012 at 6:38 PM, Benedikt Ritter wrote: Am 22.01.2012 18:18, schrieb Christian Grobmeier: @Test(expected = NullPointerException.class) No it isn't. As far as I know, your test will pass, when the first NullPointerException is

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Christian Grobmeier
On Sun, Jan 22, 2012 at 6:38 PM, Benedikt Ritter wrote: > Am 22.01.2012 18:18, schrieb Christian Grobmeier: >> @Test(expected = NullPointerException.class) > > No it isn't. As far as I know, your test will pass, when the first > NullPointerException is thrown (this also applies to @Rule > Expected

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Benedikt Ritter
Am 22.01.2012 18:18, schrieb Christian Grobmeier: Benedikt, not sure if got you right. But isn't this basically what JUnit provides with: @Test(expected = NullPointerException.class) No it isn't. As far as I know, your test will pass, when the first NullPointerException is thrown (this also a

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Bruno P. Kinoshita
Hi Benedikt,  Usually I write tests using @Test(expected=IndexOutOfBoundsException.class) or add a throws in the method signature, like [1]. [1] http://junit.sourceforge.net/doc/faq/faq.htm#tests_7 But I haven't checked what version of JUnit you are using or carefully read the code under test

Re: [SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Christian Grobmeier
Benedikt, not sure if got you right. But isn't this basically what JUnit provides with: @Test(expected = NullPointerException.class) Cheers Christian On Sun, Jan 22, 2012 at 6:11 PM, Benedikt Ritter wrote: > Hi, > > while I was working on the unit tests, I had to write several try catch > block

[SANDBOX][BeanUtils2] How to get rid of try/catch-blocks for expected exceptions in unit tests

2012-01-22 Thread Benedikt Ritter
Hi, while I was working on the unit tests, I had to write several try catch blocks in order to get all the failure cases for one methods tested in one test method. I think those could be wrapped into some class, lets call it ExpectedFailure. ExpectedFailure is abstract and clients have to impl

[GUMP@vmgump]: Project commons-exec-test (in module apache-commons) failed

2012-01-22 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-exec-test has an issue affecting its community integration. This i

Re: [Math] Proposal for a set of interoperable interfaces for mathematical structures

2012-01-22 Thread Axel
On Sat, Jan 21, 2012 at 2:10 PM, Luc Maisonobe wrote: > Le 21/01/2012 13:01, Heinz Kredel a écrit : > > Hi, > > > ... > Could you send us a link to the API rather than links to jars ? > > JAS Javadoc API http://krum.rz.uni-mannheim.de/jas/doc/api/index.html The edu.jas.structure package contains