RE: Re[2]: Barracuda: Howto build with 1.3.1 + a question
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Christian, I guess the question is 2 parts. Why do the test for TestDateValidator and TestDateRangeValidator fail in a particular locale (ours)? Have we solved that? Is it important to solve? And then why is Franck getting a failure at the following in his Locale when running tests when we've never seen the failure here before? <failure> Name 2 should be as expected expected:<......> but was:<...\...> junit.framework.ComparisonFailure: Name 2 should be as expected expected:<......> but was:<...\...> at org.enhydra.barracuda.taskdefs.TestFileNames.testPackageDirBuildFullBaseFileName(TestFileNames.java:160) </failure> Is this one important? Is it just a result of building with IBM's JDK1.3.1 rather than the Sun JDK? Jake At 07:03 PM 12/2/2002 -0500, you wrote: >What's the question? I wasn't sure from reading the thread below? If you are >asking about unit tests, when I run them here I get errors in >TestDateValidator and TestDateRangeValidator, but that's it (and those are >known, locale specific failures). So I suspect you're talking about >something else... > >Christian >---------------------------------------------- >Christian Cryder [[email protected]] >Internet Architect, ATMReports.com >Barracuda - http://barracuda.enhydra.org >---------------------------------------------- >"Coffee? I could quit anytime, just not today" > > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]]On > > Behalf Of Jacob Kjome > > Sent: Monday, December 02, 2002 5:47 PM > > To: franck routier > > Subject: Re[2]: Barracuda: Howto build with 1.3.1 + a question > > > > > > Hello franck, > > > > What's weird is the fact that I get 8 failures in the package > > "org.enhydra.barracuda.core.forms.validators" and no other issues. > > You get no failures int he validators package bug do get one failure > > in "org.enhydra.barracuda.taskdefs"??? > > > > Christian or anyone else? Could this be a locale specific thing? Is > > it a significant problem and what is the fix, if so? > > > > BTW, what is your locale? I'm using Win2k SP3 and my Regional Options > > (from the control panel) are set to "English (United States)" which, I > > assume, is en_US. > > > > Jake > > > > Monday, December 02, 2002, 11:18:43 AM, you wrote: > > > > fr> Hi, > > > > fr> Jacob Kjome wrote: > > >> > > >>> 1) Downloaded and install ant 1.5.1 > > >>> 2) Downloaded xalan from xml.apache.org > > >>> 3) Copied xalan.jar from xalan in $ANT_HOME/lib > > >>> 4) Copied junit-3.8.1.jar from Barracuda/WEB-INF/jars in $ANT_HOME/lib > > >>> 5) Replaced xercesImpl.jar in $ANT_HOME/lib with > > >>> xerces-1.4.4-xmlc-2.1.jar from Barracadu/WEB-INF/jars > > >> > > >> > > >> I actually put the latest Xalan in the WEB-INF/jars directory > > as well. > > >> Just updated it from 2.4.0 to 2.4.1 a day or two ago. > > >> > > fr> Yep > > > > >> > > >>>> In addition, javax.sql.* is in the standard java libraries. You > > >>>> don't need the J2EE jar file for that. > > >>> > > >>> > > >>> Are you sure about that one ? java.sql is standard, but I think > > >>> javax.sql belongs to j2ee... > > >>> > > >>> Anyway, if I comment out 'import javax.sql.*' in TestStringUtil.java, > > >>> it still compiles and runs, so we should probably remove it, > > shouldn't > > >>> we ? > > >> > > >> > > >> Quite sure...at least in j2sdk1.4.1_01. It is in the rt.jar (runtime > > >> jar file). See the javadoc: > > >> http://java.sun.com/j2se/1.4.1/docs/api/javax/sql/package-frame.html > > >> > > fr> Ok, it's in j2sdk since 1.4.0 > > fr> It's not in j2sdk but in j2ee for 1.3.1 (as stated in API at > > fr> http://java.sun.com/apis.html#j2se) > > > > fr> We're both right :-) > > > > >> Either way, I guess if it isn't used, it can be removed. I'll just > > >> comment it out. Consider it done and ready to go in CVS. > > >> > > >> > > fr> Cool. > > >>>> > Every test passed, but one : > > >>>> testPackageDirBuildFullBaseFileNameFailureName 2 should be as > > >>>> expected expected:<......> but was:<...\...> > > >>>> junit.framework.ComparisonFailure: Name 2 should be as expected > > >>>> expected:<......> but was:<...\...> > > >>>> at > > >>>> > > org.enhydra.barracuda.taskdefs.TestFileNames.testPackageDirBuildFu > > llBaseFileName(TestFileNames.java:160) > > >>>> 0.010 > > >> > > >> Hmm.... I don't understand what that means either, but I'm not getting > > >> it when I run the tests. Might be something locale specific? Can you > > >> send me a zip file containing the html output of the <junitreport> > > >> task? It should be in Barracuda/unit_tests/reports/html after you run > > >> "ant tests". > > >> > > > > fr> Here it is. > > > > >>> C'est grave docteur ?* > > >>> > > >>> Franck > > >>> > > >>> > > >>> *just a stupid joke I was unanble to translate. Sorry. > > >> > > >> > > >> Lucky my wife is a former French teacher.... "Is it serious, > > doctor?". > > >> Was that right? > > >> > > fr> Yes, I was not sure about the 'doctor', since in french it > > mostly means > > fr> a physician, and was not sure it was the case in english (it > > could also > > fr> be a university grade). Anyway we're both lucky you're wife is here ! > > > > fr> Regards, > > > > fr> Franck > > > > > > > > -- > > Best regards, > > Jacob mailto:[email protected] > > > > _______________________________________________ > > Barracuda mailing list > > [email protected] > > http://www.enhydra.org/mailman/listinfo.cgi/barracuda > > FAQ - http://www.jguru.com/faq/Barracuda > >_______________________________________________ >Barracuda mailing list >[email protected] >http://www.enhydra.org/mailman/listinfo.cgi/barracuda >FAQ - http://www.jguru.com/faq/Barracuda