Thanks Alexey and Nathan! On Sat, May 22, 2010 at 4:09 PM, Nathan Beyer <ndbe...@apache.org> wrote:
> It's not quite as simple as that. There are plenty of cases where > using implementation specific classes is fine - most of the modules > have hundreds of tests like this. This is why many of the modules have > a 'api' and a 'impl' folder separation. > Is that mean If I have used implementation specific classes, I should put the test case in 'impl' folder? Is there an ANT target defined to test them seperate? > > -Nathan > > On Fri, May 21, 2010 at 11:15 PM, Alexey Petrenko > <alexey.a.petre...@gmail.com> wrote: > > Yes, you should use standard APIs :) > > > > org.apache.harmony and com.sun classes are definitely out of this list. > > So you probably have to rethink your test. > > > > Good luck. > > > > Alexey > > > > 22.05.2010 8:10 пользователь "Lang Yang" <yangl...@gmail.com> написал: > > > > Hello guys, > > > > I have come across a problem. When I was writing a test case, I need to > use > > classes which are not included in the RI, like class > > org.apache.harmony.x.imageio.plugins.jpeg.JPEGImageReaderSpi. So, when > the > > test case runs on RI, there’s always a ClassDefNotFound error occur even > > though the it passed on Harmony. If I import the SUN’s version of > > JPEGImageReaderSpi (com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi), the > > test case failed on Harmony. > > So, I am wondering how to deal this problem properly? Is there any way to > > avoid the problem? > > > > Thanks, > > > > Lang > > >