You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2007/01/08 00:56:48 UTC
PageTester test failures
This happens from the command line, but not from inside Eclipse:
Tests run: 619, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 25.449 sec
<<< FAILURE!
Results :
Failed tests:
org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root
(
org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root
)
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file(
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file)
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir(
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir)
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
Re: PageTester test failures
Posted by Kent Tong <ke...@cpttm.org.mo>.
Howard Lewis Ship <hlship <at> gmail.com> writes:
> If you refactor a class and then do a build, the source file is compiled at
> its new package and name, but the old .class file is left behind until your
> do a make clean. TestNG then picks up both .class files. Eclipse, on the
> other hand, is smarter about cleaning out the bin folder after such a
> change.
Well, this shouldn't be the case here. As I didn't refactor/move the
PageTesterContext class. I just modified its content.
--
Kent Tong
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: PageTester test failures
Posted by Howard Lewis Ship <hl...@gmail.com>.
If you refactor a class and then do a build, the source file is compiled at
its new package and name, but the old .class file is left behind until your
do a make clean. TestNG then picks up both .class files. Eclipse, on the
other hand, is smarter about cleaning out the bin folder after such a
change.
On 1/7/07, Kent Tong <ke...@cpttm.org.mo> wrote:
>
> Howard Lewis Ship <hlship <at> gmail.com> writes:
>
> > False alarm ... after clean it worked. My bad ... should have done that
> > earlier.
>
> Any idea why this is even necessary? I've been bitten by this
> several times. The .java file is updated but maven fails to
> update the .class file.
>
> --
> Kent Tong
> Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
Re: PageTester test failures
Posted by Kent Tong <ke...@cpttm.org.mo>.
Howard Lewis Ship <hlship <at> gmail.com> writes:
> False alarm ... after clean it worked. My bad ... should have done that
> earlier.
Any idea why this is even necessary? I've been bitten by this
several times. The .java file is updated but maven fails to
update the .class file.
--
Kent Tong
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: PageTester test failures
Posted by Howard Lewis Ship <hl...@gmail.com>.
False alarm ... after clean it worked. My bad ... should have done that
earlier.
On 1/7/07, Kent Tong <ke...@cpttm.org.mo> wrote:
>
> Howard Lewis Ship <hlship <at> gmail.com> writes:
>
> > On 1/7/07, Howard Lewis Ship <hlship <at> gmail.com> wrote:
> > >
> > > This happens from the command line, but not from inside Eclipse:
> > >
> > > Tests run: 619, Failures: 3, Errors: 0, Skipped: 0, Time elapsed:
> 25.449sec
> <<< FAILURE!
>
> Try "mvn clean". It may be an old PageTesterContext.class is hanging
> around. The tests that fail are making sure PageTesterContext.getResource
> ()
> returns null if the file doesn't exist or is not a directory (but the
> code is not returning null for some reason).
>
> --
> Kent Tong
> Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
Re: PageTester test failures
Posted by Kent Tong <ke...@cpttm.org.mo>.
Howard Lewis Ship <hlship <at> gmail.com> writes:
> On 1/7/07, Howard Lewis Ship <hlship <at> gmail.com> wrote:
> >
> > This happens from the command line, but not from inside Eclipse:
> >
> > Tests run: 619, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 25.449sec
<<< FAILURE!
Try "mvn clean". It may be an old PageTesterContext.class is hanging
around. The tests that fail are making sure PageTesterContext.getResource()
returns null if the file doesn't exist or is not a directory (but the
code is not returning null for some reason).
--
Kent Tong
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: PageTester test failures
Posted by Howard Lewis Ship <hl...@gmail.com>.
More data:
-------------------------------------------------------------------------------
Test set: Tapestry Core
-------------------------------------------------------------------------------
Tests run: 619, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 25.449 sec
<<< FAILURE!
org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root
(
org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root)
Time elapsed: 0.221 sec <<< FAILURE!
java.lang.RuntimeException: Unable to read last modified time stamp of
resource
file:/Users/Howard/Documents/workspace/tapestry-core/src/test/app2/TestPageForTemplateInContext_en_US.html:
/Users/Howard/Documents/workspace/tapestry-core/src/test/app2/TestPageForTemplateInContext_en_US.html
(No such file or directory)
at org.apache.tapestry.internal.util.URLChangeTracker.readTimestamp(
URLChangeTracker.java:106)
at org.apache.tapestry.internal.util.URLChangeTracker.add(
URLChangeTracker.java:45)
at
org.apache.tapestry.internal.services.ComponentTemplateSourceImpl.parseTemplate
(ComponentTemplateSourceImpl.java:142)
at
org.apache.tapestry.internal.services.ComponentTemplateSourceImpl.getTemplate
(ComponentTemplateSourceImpl.java:125)
at
$ComponentTemplateSource_10ffefc7fe0.getTemplate($ComponentTemplateSource_10ffefc7fe0.java)
at
$ComponentTemplateSource_10ffefc7fc9.getTemplate($ComponentTemplateSource_10ffefc7fc9.java)
at
org.apache.tapestry.internal.services.PageLoaderImpl.loadTemplateForComponent
(PageLoaderImpl.java:154)
at
org.apache.tapestry.internal.services.PageLoaderImpl.workComponentQueue(
PageLoaderImpl.java:139)
at org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(
PageLoaderImpl.java:102)
at $PageLoader_10ffefc7fdc.loadPage($PageLoader_10ffefc7fdc.java)
at $PageLoader_10ffefc7fd9.loadPage($PageLoader_10ffefc7fd9.java)
at org.apache.tapestry.internal.services.PagePoolImpl.checkout(
PagePoolImpl.java:63)
at $PagePool_10ffefc7fe1.checkout($PagePool_10ffefc7fe1.java)
at $PagePool_10ffefc7fd8.checkout($PagePool_10ffefc7fd8.java)
at
org.apache.tapestry.internal.services.RequestPageCacheImpl.getByClassName(
RequestPageCacheImpl.java:60)
at org.apache.tapestry.internal.services.RequestPageCacheImpl.get(
RequestPageCacheImpl.java:51)
at $RequestPageCache_10ffefc7fd6.get($RequestPageCache_10ffefc7fd6.java)
at $RequestPageCache_10ffefc7fd7.get($RequestPageCache_10ffefc7fd7.java)
at $RequestPageCache_10ffefc7fc4.get($RequestPageCache_10ffefc7fc4.java)
at org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle(
PageLinkHandlerImpl.java:38)
at
$PageLinkHandler_10ffefc7fd5.handle($PageLinkHandler_10ffefc7fd5.java)
at
$PageLinkHandler_10ffefc7fd1.handle($PageLinkHandler_10ffefc7fd1.java)
at org.apache.tapestry.test.pagelevel.PageLinkInvoker.invoke(
PageLinkInvoker.java:60)
at org.apache.tapestry.test.pagelevel.PageTester.invoke(PageTester.java
:215)
at org.apache.tapestry.test.pagelevel.PageTester.renderPage(
PageTester.java:180)
at
org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root
(TemplateInContextTest.java:33)
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file(
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file)
Time elapsed: 0.001 sec <<< FAILURE!
java.lang.AssertionError: expected:<true> but was:<false>
at org.testng.Assert.fail(Assert.java:76)
at org.testng.Assert.failNotEquals(Assert.java:348)
at org.testng.Assert.assertTrue(Assert.java:29)
at org.testng.Assert.assertNull(Assert.java:291)
at org.testng.Assert.assertNull(Assert.java:283)
at
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file(
PageTesterContextTest.java:40)
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir(
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir)
Time elapsed: 0.001 sec <<< FAILURE!
java.lang.AssertionError: expected:<true> but was:<false>
at org.testng.Assert.fail(Assert.java:76)
at org.testng.Assert.failNotEquals(Assert.java:348)
at org.testng.Assert.assertTrue(Assert.java:29)
at org.testng.Assert.assertNull(Assert.java:291)
at org.testng.Assert.assertNull(Assert.java:283)
at
org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir(
PageTesterContextTest.java:48)
On 1/7/07, Howard Lewis Ship <hl...@gmail.com> wrote:
>
> This happens from the command line, but not from inside Eclipse:
>
> Tests run: 619, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 25.449sec <<< FAILURE!
>
> Results :
>
> Failed tests:
>
> org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root(
> org.apache.tapestry.integration.pagelevel.TemplateInContextTest.template_in_context_root
> )
> org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file(
> org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_no_file )
> org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir(
> org.apache.tapestry.test.pagelevel.PageTesterContextTest.to_URL_is_dir)
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com