Re: [Rife-users] Template unit tests
Geert, Yes I did. I also ran the tests on Windows and they pass. It's also ok for me now. Thanks again. Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Hi Pierre, I set the svn:eol-style property to LF on the test template files. I hope that helps. Great! I got the files with svn:eol-style at LF :-) Did you change the value for includes_othertype_out_content_4.html? I still got the "native" value"? Yes I did. I also ran the tests on Windows and they pass. Question: almost all the unittests/templates files are loaded without any svn:eol-style property. And then everything is ok: svn keeps LF as eol. Is this property set for these files on the svn repository? I set the property explicitly on the test template files since the unittests have these checks that include the line endings. For the rest of the source base it shouldn't matter. Best regards, Geert -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Geert, I set the svn:eol-style property to LF on the test template files. I hope that helps. Great! I got the files with svn:eol-style at LF :-) Did you change the value for includes_othertype_out_content_4.html? I still got the "native" value"? Question: almost all the unittests/templates files are loaded without any svn:eol-style property. And then everything is ok: svn keeps LF as eol. Is this property set for these files on the svn repository? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Hi Pierre, I set the svn:eol-style property to LF on the test template files. I hope that helps. Best regards, Geert On 26-jan-06, at 21:56, Raoul Pierre wrote: Geert, The last error is most probably because you edited a template file in an editor that insists on having a final newline at the end of a file. Some editors always add this, even is you remove that last blank line. Even if I replace my locale file by a copy from svn repository, the eol in the file are CR+LF. After some search with google, I found it's a svn issue: the files I have problem with have svn:eol-style property to native. When I remove this property and update the files, nothing appends. When I replace the locale file by a copy of the repository, svn recreates the property svn:eol-style for the file and remplace the LF by CR+LF! Same thing if I force this property to "LF" value. So i'm stuck. Does anybody know how to update such a file after removing the property svn:eol-style? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Hi Pierre, I'm sorry, I don't really use windows, so I can't help with this. Maybe ask on the subversion list? Best regards, Geert On 26-jan-06, at 21:56, Raoul Pierre wrote: Geert, The last error is most probably because you edited a template file in an editor that insists on having a final newline at the end of a file. Some editors always add this, even is you remove that last blank line. Even if I replace my locale file by a copy from svn repository, the eol in the file are CR+LF. After some search with google, I found it's a svn issue: the files I have problem with have svn:eol-style property to native. When I remove this property and update the files, nothing appends. When I replace the locale file by a copy of the repository, svn recreates the property svn:eol-style for the file and remplace the LF by CR+LF! Same thing if I force this property to "LF" value. So i'm stuck. Does anybody know how to update such a file after removing the property svn:eol-style? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Geert, The last error is most probably because you edited a template file in an editor that insists on having a final newline at the end of a file. Some editors always add this, even is you remove that last blank line. Even if I replace my locale file by a copy from svn repository, the eol in the file are CR+LF. After some search with google, I found it's a svn issue: the files I have problem with have svn:eol-style property to native. When I remove this property and update the files, nothing appends. When I replace the locale file by a copy of the repository, svn recreates the property svn:eol-style for the file and remplace the LF by CR+LF! Same thing if I force this property to "LF" value. So i'm stuck. Does anybody know how to update such a file after removing the property svn:eol-style? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Thanks Pierre, I committed your change. The last error is most probably because you edited a template file in an editor that insists on having a final newline at the end of a file. Some editors always add this, even is you remove that last blank line. On 26-jan-06, at 18:26, Raoul Pierre wrote: Geert, You apparently still haven't setup your config file correctly either. So now I get only one failure, see below. I checked the files: includes_othertype_in.html includes_othertype_out_content_0.html includes_othertype_out_content_1.html includes_othertype_out_content_2.html includes_othertype_out_content_3.html includes_othertype_out_content_4.html Is there any other file concerned by this test? Other point: I had to specified the locale in TestArrayUtils.testCreateStringArrayDate. See diff below. Regards Pierre Index: C:/DEV/Rife/rife-svn-orig/src/unittests/com/uwyn/rife/tools/ TestArrayUtils.java === --- C:/DEV/Rife/rife-svn-orig/src/unittests/com/uwyn/rife/tools/ TestArrayUtils.java(revision 2854) +++ C:/DEV/Rife/rife-svn-orig/src/unittests/com/uwyn/rife/tools/ TestArrayUtils.java(working copy) @@ -12,6 +12,7 @@ import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; +import java.util.Locale; import junit.framework.TestCase; public class TestArrayUtils extends TestCase @@ -160,7 +161,7 @@ assertEquals(1, converted.length); assertEquals("2005-08-18 09:27", converted[0]); -converted = ArrayUtils.createStringArray(cal.getTime (), new ConstrainedProperty("someProperty").format(new SimpleDateFormat(".MM.dd G 'at' HH:mm:ss"))); +converted = ArrayUtils.createStringArray(cal.getTime(), new ConstrainedProperty("someProperty").format(new SimpleDateFormat (".MM.dd G 'at' HH:mm:ss", Locale.ENGLISH))); assertEquals(1, converted.length); assertEquals("2005.08.18 AD at 09:27:13", converted[0]); } == == [java] Time: 55,766 [java] There was 1 failure: [java] 1) testParseIncludesOtherType (com.uwyn.rife.template.TestParser) junit.framework.ComparisonFailure: expected:<...> but was:<... [java] > [java] at com.uwyn.rife.template.TestParser.testParseIncludesOtherType (TestParser.java:638) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main (RunWithEngineClassLoader.java:44) [java] FAILURES!!! [java] Tests run: 528, Failures: 1, Errors: 0 BUILD SUCCESSFUL Total time: 1 minute 6 seconds ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Geert, You apparently still haven't setup your config file correctly either. So now I get only one failure, see below. I checked the files: includes_othertype_in.html includes_othertype_out_content_0.html includes_othertype_out_content_1.html includes_othertype_out_content_2.html includes_othertype_out_content_3.html includes_othertype_out_content_4.html Is there any other file concerned by this test? Other point: I had to specified the locale in TestArrayUtils.testCreateStringArrayDate. See diff below. Regards Pierre Index: C:/DEV/Rife/rife-svn-orig/src/unittests/com/uwyn/rife/tools/TestArrayUtils.java === --- C:/DEV/Rife/rife-svn-orig/src/unittests/com/uwyn/rife/tools/TestArrayUtils.java (revision 2854) +++ C:/DEV/Rife/rife-svn-orig/src/unittests/com/uwyn/rife/tools/TestArrayUtils.java (working copy) @@ -12,6 +12,7 @@ import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; +import java.util.Locale; import junit.framework.TestCase; public class TestArrayUtils extends TestCase @@ -160,7 +161,7 @@ assertEquals(1, converted.length); assertEquals("2005-08-18 09:27", converted[0]); -converted = ArrayUtils.createStringArray(cal.getTime(), new ConstrainedProperty("someProperty").format(new SimpleDateFormat(".MM.dd G 'at' HH:mm:ss"))); +converted = ArrayUtils.createStringArray(cal.getTime(), new ConstrainedProperty("someProperty").format(new SimpleDateFormat(".MM.dd G 'at' HH:mm:ss", Locale.ENGLISH))); assertEquals(1, converted.length); assertEquals("2005.08.18 AD at 09:27:13", converted[0]); } [java] Time: 55,766 [java] There was 1 failure: [java] 1) testParseIncludesOtherType(com.uwyn.rife.template.TestParser)junit.framework.ComparisonFailure: expected:<...> but was:<... [java] > [java] at com.uwyn.rife.template.TestParser.testParseIncludesOtherType(TestParser.java:638) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] FAILURES!!! [java] Tests run: 528, Failures: 1, Errors: 0 BUILD SUCCESSFUL Total time: 1 minute 6 seconds ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
It's not an issue with the parser, it's junit assertEquals() that considers the line endings to be different. You apparently still haven't setup your config file correctly either. I think that the invisible equals differences are related to the linebreak differences. Either SVN converted them to windows at checkout, either something else is as play. What are they in cvs? Unix one? They're in subversion, not cvs, and yeah they are unix ones. I changed eol of the concerned files, and again much less messages. See below. Is there any way to force subversion to keep the unix eol during update? Why is this an issue with Parser? -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Geert, I think that the invisible equals differences are related to the linebreak differences. Either SVN converted them to windows at checkout, either something else is as play. What are they in cvs? Unix one? They're in subversion, not cvs, and yeah they are unix ones. I changed eol of the concerned files, and again much less messages. See below. Is there any way to force subversion to keep the unix eol during update? Why is this an issue with Parser? Regards Pierre = [java] Time: 83,64 [java] There was 1 error: [java] 1) testReloadTransformationDependencies(com.uwyn.rife.template.TestTemplateFactory)com.uwyn.rife.template.exceptions.FilterNotFoundException: Couldn't find the filter 'transformation_reload_dependency2.xsl'. [java] at com.uwyn.rife.template.TemplateTransformerXslt.addFilter(TemplateTransformerXslt.java:106) [java] at com.uwyn.rife.template.TestTemplateFactory.testReloadTransformationDependencies(TestTemplateFactory.java:3722) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] There were 8 failures: [java] 1) testParseIncludesOtherType(com.uwyn.rife.template.TestParser)junit.framework.ComparisonFailure: expected:<...> but was:<... [java] > [java] at com.uwyn.rife.template.TestParser.testParseIncludesOtherType(TestParser.java:638) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] 2) testReloadBasic(com.uwyn.rife.template.TestTemplateFactory)junit.framework.AssertionFailedError: com.uwyn.rife.template.exceptions.TemplateNotFoundException: Couldn't find template 'reload_basic'. [java] at com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:428) [java] at com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:374) [java] at com.uwyn.rife.template.TestTemplateFactory.testReloadBasic(TestTemplateFactory.java:3441) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] Caused by: java.lang.ClassNotFoundException: Couldn't resolve template: 'com.uwyn.rife.template.html.reload_basic'. [java] at com.uwyn.rife.template.TemplateClassLoader.compileTemplate(TemplateClassLoader.java:175) [java] at com.uwyn.rife.template.TemplateClassLoader.loadClass(TemplateClassLoader.java:146) [java] at com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:397) [java] ... 27 more [java] at com.uwyn.rife.template.TestTemplateFactory.testReloadBasic(TestTemplateFactory.java:3446) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Del
Re: [Rife-users] Template unit tests
Hi Pierre, Thanks. Much less errors now... Cool :-) I think that the invisible equals differences are related to the linebreak differences. Either SVN converted them to windows at checkout, either something else is as play. What are they in cvs? Unix one? They're in subversion, not cvs, and yeah they are unix ones. Best regards, Geert -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Geert, Your other errors are most probably related to the fact that you didn't configure rife/programs/unittests/config/rep/config- windows_xp.html according to the location of the files on your machine. Thanks. Much less errors now... I think that the invisible equals differences are related to the linebreak differences. Either SVN converted them to windows at checkout, either something else is as play. What are they in cvs? Unix one? Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Template unit tests
Hi Pierre, I committed an updated version of TestTemplateFactory that uses the embedded Derby DB instead. Your other errors are most probably related to the fact that you didn't configure rife/programs/unittests/config/rep/config- windows_xp.html according to the location of the files on your machine. I think that the invisible equals differences are related to the linebreak differences. Either SVN converted them to windows at checkout, either something else is as play. Best regards, Geert On 26-jan-06, at 11:09, Raoul Pierre wrote: Geert, When I run the unit tests: suite.addTest(com.uwyn.rife.template.TestSuiteTemplate.suite()); suite.addTest(com.uwyn.rife.test.TestSuiteTest.suite()); suite.addTest(com.uwyn.rife.tools.TestSuiteTools.suite()); with Rife directly copied from CVS, I get many failures and one error, see messages below. I use Windows XP Pro and I run the test with ant target "test" under Eclipse 3. It seems there is three types of issue: - Parser bug: I can't see any difference between the 2 strings; but if I check directly their length, they aren't different! - files not found, e.g. "includes_reload_master" is not found (but there is a "includes_reload_master_in" html file ...) - postgresql is used: I have no such RDBMS installed; should it be possible to choice an other one? Regards Pierre == [java] Time: 62,688 [java] There was 1 error: [java] 1) testReloadTransformationDependencies (com.uwyn.rife.template.TestTemplateFactory) com.uwyn.rife.template.exceptions.FilterNotFoundException: Couldn't find the filter 'transformation_reload_dependency2.xsl'. [java] at com.uwyn.rife.template.TemplateTransformerXslt.addFilter (TemplateTransformerXslt.java:106) [java] at com.uwyn.rife.template.TestTemplateFactory.testReloadTransformationDep endencies(TestTemplateFactory.java:3722) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main (RunWithEngineClassLoader.java:44) [java] There were 18 failures: [java] 1) testParseIncludesOtherType (com.uwyn.rife.template.TestParser) junit.framework.ComparisonFailure: expected:<... [java] Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> [java] http://www.w3.org/1999/xhtml"; xml:lang="en" lang="eng">...> but was:<... [java] Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> [java] http://www.w3.org/1999/xhtml"; xml:lang="en" lang="eng"> [java] ...> [java] at com.uwyn.rife.template.TestParser.testParseIncludesOtherType (TestParser.java:638) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main (RunWithEngineClassLoader.java:44) [java] 2) testFilteredTagsRenderHtml (com.uwyn.rife.template.TestTemplateFactory) junit.framework.ComparisonFailure: expected:<... [java] This is another render value 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPLnull:1'. [java] This is the render value with a differentiator 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPL:DIFFERENT:different: 2'> but was:<... [java] This is another render value 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPLnull:1'. [java] This is the render value with a differentiator 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPL:DIFFERENT:different:2'. [java] ...> [java] at com.uwyn.rife.template.TestTemplateFactory.testFilteredTagsRenderHtml( TestTemplateFactory.java:577) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke (Delegatin
[Rife-users] Template unit tests
Geert, When I run the unit tests: suite.addTest(com.uwyn.rife.template.TestSuiteTemplate.suite()); suite.addTest(com.uwyn.rife.test.TestSuiteTest.suite()); suite.addTest(com.uwyn.rife.tools.TestSuiteTools.suite()); with Rife directly copied from CVS, I get many failures and one error, see messages below. I use Windows XP Pro and I run the test with ant target "test" under Eclipse 3. It seems there is three types of issue: - Parser bug: I can't see any difference between the 2 strings; but if I check directly their length, they aren't different! - files not found, e.g. "includes_reload_master" is not found (but there is a "includes_reload_master_in" html file ...) - postgresql is used: I have no such RDBMS installed; should it be possible to choice an other one? Regards Pierre == [java] Time: 62,688 [java] There was 1 error: [java] 1) testReloadTransformationDependencies(com.uwyn.rife.template.TestTemplateFactory)com.uwyn.rife.template.exceptions.FilterNotFoundException: Couldn't find the filter 'transformation_reload_dependency2.xsl'. [java] at com.uwyn.rife.template.TemplateTransformerXslt.addFilter(TemplateTransformerXslt.java:106) [java] at com.uwyn.rife.template.TestTemplateFactory.testReloadTransformationDependencies(TestTemplateFactory.java:3722) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] There were 18 failures: [java] 1) testParseIncludesOtherType(com.uwyn.rife.template.TestParser)junit.framework.ComparisonFailure: expected:<... [java] http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> [java] http://www.w3.org/1999/xhtml"; xml:lang="en" lang="eng">...> but was:<... [java] http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> [java] http://www.w3.org/1999/xhtml"; xml:lang="en" lang="eng"> [java] ...> [java] at com.uwyn.rife.template.TestParser.testParseIncludesOtherType(TestParser.java:638) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] 2) testFilteredTagsRenderHtml(com.uwyn.rife.template.TestTemplateFactory)junit.framework.ComparisonFailure: expected:<... [java] This is another render value 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPLnull:1'. [java] This is the render value with a differentiator 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPL:DIFFERENT:different:2'> but was:<... [java] This is another render value 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPLnull:1'. [java] This is the render value with a differentiator 'RENDER:COM.UWYN.RIFE.TEMPLATE.RENDERERIMPL:DIFFERENT:different:2'. [java] ...> [java] at com.uwyn.rife.template.TestTemplateFactory.testFilteredTagsRenderHtml(TestTemplateFactory.java:577) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.TestRife.main(TestRife.java:43) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at com.uwyn.rife.test.RunWithEngineClassLoader.main(RunWithEngineClassLoader.java:44) [java] 3) testFilteredTagsRenderXhtml(com.uwyn.rife.template.TestTemplateFactory)junit.framework.ComparisonFailure: expected:<... [java] This is another render value 'RENDER:COM.UWYN.RIFE.TEMPLATE.