Skip to content

Commit

Permalink
fixes issue #2 - Update routing to T5.4 beta-22
Browse files Browse the repository at this point in the history
 - fixed failing test RouteTest.link_to_unannotatedpage
 - fixed failing test PageRender_precedence_over_RouterDispatcher
  • Loading branch information
Alejandro Scandroli committed Dec 18, 2014
1 parent 2cc0ea9 commit 37c54e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -31,7 +31,7 @@
</distributionManagement>

<properties>
<tapestry-release-version>5.4-beta-3</tapestry-release-version>
<tapestry-release-version>5.4-beta-22</tapestry-release-version>
</properties>

<build>
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/org/tynamo/routing/RouteTest.java
@@ -1,6 +1,7 @@
package org.tynamo.routing;

import org.apache.tapestry5.internal.EmptyEventContext;
import org.apache.tapestry5.internal.InternalConstants;
import org.apache.tapestry5.internal.services.PageRenderDispatcher;
import org.apache.tapestry5.ioc.RegistryBuilder;
import org.apache.tapestry5.services.*;
Expand Down Expand Up @@ -195,6 +196,7 @@ public void PageRender_precedence_over_RouterDispatcher() throws IOException {
expect(request.getPath()).andReturn("/home").atLeastOnce();
expect(request.getParameter("t:lb")).andReturn(null).atLeastOnce();
expect(request.getLocale()).andReturn(FI).atLeastOnce();
expect(request.getAttribute(InternalConstants.REFERENCED_COMPONENT_NOT_FOUND)).andReturn(null).once();

Capture<PageRenderRequestParameters> parameters = newCapture();

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/tynamo/routing/modules/TestsModule.java
Expand Up @@ -29,7 +29,7 @@ public static void provideApplicationDefaults(MappedConfiguration<String, Object
@Primary @Contribute(RouteProvider.class)
public static void addRoutes(OrderedConfiguration<Route> configuration, RouteFactory routeFactory) {

String canonicalized = "subpackage/UnannotatedPage";
String canonicalized = "subpackage/Unannotated";
configuration.add(canonicalized.toLowerCase(), routeFactory.create("/not/annotated/{0}", canonicalized));

}
Expand Down

0 comments on commit 37c54e1

Please sign in to comment.