[Freemarker-devel] Test failures
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
|
From: Attila S. <sze...@fr...> - 2002-03-13 11:05:30
|
Running JUnit test against my yesterday changes produces the following. I've not touched anything related to these cl= asses, so I guess it would fail with earlier code as well: (BTW, I wrote a "test" Ant target in the build.xml, so you can use "a= nt test" to run the freemarker.testcase.FreeMarkerTestSuite) Testcase: testLocale took 0,14 sec Caused an ERROR null java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:64) at java.io.InputStreamReader.<init>(InputStreamReader.java:89) at java.io.InputStreamReader.<init>(InputStreamReader.java:78) at java.util.Properties.load(Properties.java:189) at freemarker.testcase.AbstractTestCase.getTestcasePath(Unknown Sour= ce) at freemarker.testcase.TestLocalization.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni= tTestRu nner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn= itTestR unner.java:409) Testcase: testInclude took 0,681 sec Caused an ERROR null java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:64) at java.io.InputStreamReader.<init>(InputStreamReader.java:89) at java.io.InputStreamReader.<init>(InputStreamReader.java:78) at java.util.Properties.load(Properties.java:189) at freemarker.testcase.AbstractTestCase.getTestcasePath(Unknown Sour= ce) at freemarker.testcase.TestInclude.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni= tTestRu nner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn= itTestR unner.java:409) Testcase: testInclude2 took 0,01 sec Caused an ERROR null java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:64) at java.io.InputStreamReader.<init>(InputStreamReader.java:89) at java.io.InputStreamReader.<init>(InputStreamReader.java:78) at java.util.Properties.load(Properties.java:189) at freemarker.testcase.AbstractTestCase.getTestcasePath(Unknown Sour= ce) at freemarker.testcase.TestInclude2.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni= tTestRu nner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn= itTestR unner.java:409) -- Attila Szegedi home: http://www.szegedi.org ----- Original Message ----- =46rom: "Jonathan Revusky" <jre...@te...> To: <fre...@li...> Sent: 2002. m=E1rcius 12. 19:40 Subject: Re: [Freemarker-devel] To all lurkers > Bri...@we... wrote: > > Hi, > > Thanks for the note, Brian. > > > > > Jonathan Revusky writes: > > > The last time I was able to check (before a sourceforge admin c= hange) > > > there were about 40 subscribers to the freemarker-devl list. > > > OTOH, only > > > about 4 people ever say anything. So that means there are 36 > > > lurkers. Or > > > possibly more or fewer. > > > > Aack, we've been un-veiled! > > > > Sorry I can't help with testing. I've been off our template-rela= ted stuff > > for a couple of months now here at WebGain, assigned to a differe= nt project. > > > > It's been great hearing about all the improvements. Jonathan, yo= u seem to > > be making huge strides and getting a lot of gritty details (licen= sing, code > > cleanup) handled as well as the JavaCC and feature changes. Brav= o! > > > > On the flip side of that, it strikes me that the change from 1.x = to 2.0 is > > basically going to be "all Jonathon." > > Well, I do have to say that this is not by my choice. Once I contri= buted > the javacc grammar back in September, that immediately afforded *hu= ge* > possibilities for both code cleanup and feature enhancement. So it'= s > like I dropped a big ball on the field and nobody picked it up and = ran. > Now, I'm not complaining about this or anything. After all, I used = FM > for 2 years without contributing anything. And I use other open sou= rce > stuff and never have contributed to those projects. > > My first really serious attempt to get an open source project going= was > the Niggle Web Application Framework ( http://niggle.org ) which us= es > Freemarker as a page template engine. That's still basically a one-= man > show. I have users, they keep downloading it. I see the server logs= . I > see the same IP's come back and pick up the latest version constant= ly. > But I don't really have any significant community of collaborators > developed. > > Now, I've put a large amount of energy into another project (this o= ne) > and it also has started to look like a one-man show. Though now I s= ee > that Attila Szegedi is getting involved more, committing a bunch of > stuff today. > > You know, but in general, I'm actually at a loss as to how to get p= eople > to pitch in and take ownership of tasks. Maybe it's the well known > projects like apache or xemacs or perl > or python or whatever that attract far more people to participate. = I > dunno. > > Maybe it's a question of not organizing a list of open tasks well > enough. Though actually, come to think of it, I found it difficult = to > get people to take ownership of tasks at companies -- where people = were > getting paid to (supposedly) work. So when people are just > volunteering... To tell the truth, just how much high quality open > source software is out there is actually an astounding fact that I = have > no explanation for -- despite being involved in the phenomenon. > > > I've contributed nothing, so can't > > speak for the other major code contributors to this project, but = it might be > > a little alarming to come back from a vacation or something and s= ee all that > > has changed in the past few weeks. > > Well, I hope that whoever is on vacation is having at least half as= much > fun as I've been having over the last week or two! :-) > > > (Don't read anything in this other than > > "have a short thought for the possible feelings of other contribu= tors") > > Well, I guess people could even feel that I've hijacked the project= . > > Remember the cliche about, how if a tree falls in the forest and no= body > is there to hear it, was there sound? > > A funnier (but extremely politically incorrect) variant on this is,= if > you're raped but end up enjoying it, was it really rape? > > As hijacking goes, if someone hijacks an airplane and takes the pla= ne to > where it was heading anyway, was there a hijacking? > > But seriously, I think what's happening is that I'm between project= s > (yes, that is a hint to people who might want to throw some paid wo= rk my > way) and I'm putting far more energy into this now than anyone else= . > > > > > I like the math operations, and the #{...}. I think arbitrary pr= ecision was > > a good decision. The whole argument about "too much logic in the > > presentation layer" has been beaten to death with no obvious reso= lution on > > the Tomcat list in the recent past. (May still be going on.) I = don't > > really have too much to offer, but the more the template "languag= e" starts > > to look like a programming language, the wierder things get. > > I do want to reassure people that I have absolutely no intention of > adding a lot of silly stuff that doesn't belong on the presentation > layer simply because it can be done -- matrix algebra, linear > regression, fourier transforms... :-) > > I was thinking about this sort of thing the other day, and I think = that > a lot of the reason projects can get full of bloat is simply that m= ost > people who get involved far prefer to hack code than to write > documentation. Also, since mastering the core of the code takes a > significant intellectual investment, people add on peripheral > special-interest features that -- while some add-ons are quite nice= -- > they sometimes verge on silliness... So what happens is you end up = with > a lot of poorly documented bloatware... > > Really, at this exact moment, the most useful thing people could do= , if > they want to pitch in, would be to work on getting the manual in sy= nch > with the feature set and also writing some simple well-documented > examples that use the new features (as well as the old ones). Writi= ng > unit tests. > > I have to confess that I find the above tasks rather dull too.... A= t > this point, just picking up the latest version and seeing if it bre= aks > any of your templates or whatever, that's even a worthwhile > contribution. > > > Regards, > -- > Jonathan Revusky > -- > available for Java/Delphi/Internet consulting > If you want to... > - make your .class files double-clickable with SmartJ > - do Delphi/Java mixed programming with easy-to-use JNI wrapper cla= sses > - build robust web applications with the Niggle Application Framewo= rk > then... > check out the Revusky Hacks Page: http://revusky.com/hacks/ > > _______________________________________________ > Freemarker-devel mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freemarker-devel > > > |