Re: [math] Using reflection to test private methods

2012-12-02 Thread Sébastien Brisard
Hi, 2012/12/2 sebb > On 2 December 2012 09:58, Sébastien Brisard > wrote: > > Hi > > > > > > 2012/12/1 Gilles Sadowski > > > >> On Sat, Dec 01, 2012 at 09:39:04PM +, sebb wrote: > >> > On 30 November 2012 11:43, Luc Maisonobe > wrote: > >> > > Le 30/11/2012 09:19, Thomas Neidhart a écrit

Re: [math] Using reflection to test private methods

2012-12-02 Thread sebb
On 2 December 2012 09:58, Sébastien Brisard wrote: > Hi > > > 2012/12/1 Gilles Sadowski > >> On Sat, Dec 01, 2012 at 09:39:04PM +, sebb wrote: >> > On 30 November 2012 11:43, Luc Maisonobe wrote: >> > > Le 30/11/2012 09:19, Thomas Neidhart a écrit : >> > >> On Fri, Nov 30, 2012 at 8:06 AM, S

Re: [math] Using reflection to test private methods

2012-12-02 Thread Sébastien Brisard
Hi, 2012/12/2 Ted Dunning > Google has a nice @ExposedForTesting annotation that they use for this. > > There are numerous instances in guava where otherwise private methods are > exposed to the test suite for testing. It makes a lot of sense, and there > are no questions to anybody looking at

Re: [math] Using reflection to test private methods

2012-12-02 Thread Sébastien Brisard
Hi 2012/12/1 Gilles Sadowski > On Sat, Dec 01, 2012 at 09:39:04PM +, sebb wrote: > > On 30 November 2012 11:43, Luc Maisonobe wrote: > > > Le 30/11/2012 09:19, Thomas Neidhart a écrit : > > >> On Fri, Nov 30, 2012 at 8:06 AM, Sébastien Brisard < > > >> sebastien.bris...@m4x.org> wrote: > >

Re: [math] Using reflection to test private methods

2012-12-01 Thread Ted Dunning
Google has a nice @ExposedForTesting annotation that they use for this. There are numerous instances in guava where otherwise private methods are exposed to the test suite for testing. It makes a lot of sense, and there are no questions to anybody looking at the code about what is happening. If

Re: [math] Using reflection to test private methods

2012-12-01 Thread Gilles Sadowski
On Sat, Dec 01, 2012 at 09:39:04PM +, sebb wrote: > On 30 November 2012 11:43, Luc Maisonobe wrote: > > Le 30/11/2012 09:19, Thomas Neidhart a écrit : > >> On Fri, Nov 30, 2012 at 8:06 AM, Sébastien Brisard < > >> sebastien.bris...@m4x.org> wrote: > >> > >>> Hi, > >>> I've already posted the s

Re: [math] Using reflection to test private methods

2012-12-01 Thread sebb
On 30 November 2012 11:43, Luc Maisonobe wrote: > Le 30/11/2012 09:19, Thomas Neidhart a écrit : >> On Fri, Nov 30, 2012 at 8:06 AM, Sébastien Brisard < >> sebastien.bris...@m4x.org> wrote: >> >>> Hi, >>> I've already posted the same question in another thread [1], but I thought >>> having a dedic

Re: [math] Using reflection to test private methods

2012-11-30 Thread Luc Maisonobe
Le 30/11/2012 09:19, Thomas Neidhart a écrit : > On Fri, Nov 30, 2012 at 8:06 AM, Sébastien Brisard < > sebastien.bris...@m4x.org> wrote: > >> Hi, >> I've already posted the same question in another thread [1], but I thought >> having a dedicated thread would increase its visibility. >> >> Here is

Re: [math] Using reflection to test private methods

2012-11-30 Thread Thomas Neidhart
On Fri, Nov 30, 2012 at 8:06 AM, Sébastien Brisard < sebastien.bris...@m4x.org> wrote: > Hi, > I've already posted the same question in another thread [1], but I thought > having a dedicated thread would increase its visibility. > > Here is my problem. The new implementation of Beta.logBeta(double

[math] Using reflection to test private methods

2012-11-29 Thread Sébastien Brisard
Hi, I've already posted the same question in another thread [1], but I thought having a dedicated thread would increase its visibility. Here is my problem. The new implementation of Beta.logBeta(double, double) I'm currently working on relies on several private methods through a rather complex bra