Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Removeroutes-compiler-injected-routes-compilation scripted test as duplicate#13230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ihostage wants to merge1 commit intoplayframework:main
base:main
Choose a base branch
Loading
fromihostage:drop-routes-compiler-injected-routes-compilation

Conversation

ihostage
Copy link
Member

StaticRoutesGenerator was removed more than 7 years ago (#8049) andInjectedRoutesGenerator has become the only possible way. Therefore, I see no reason to have a two very similar scripted tests.

After analysing the difference betweenroutes-compiler-injected-routes-compilation androutes-compiler-routes-compilation folders I copied some cases that were not covered byroutes-compiler-routes-compilation and completely removedroutes-compiler-injected-routes-compilation.

GET /take-bool controllers.Application.takeBool(b: Boolean)
GET /take-bool-2/:b controllers.Application.takeBool2(b: Boolean)
GET /take-list controllers.Application.takeList(x: List[Int])
GET /take-list-tick-param controllers.Application.takeListTickedParam(`b[]`: List[Int])
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This case is covered byroutes-compiler-routes-compilation-java

@ihostageihostageforce-pushed thedrop-routes-compiler-injected-routes-compilation branch from335d689 to33277b5CompareApril 4, 2025 14:05
GET /take-list controllers.Application.takeList(x: List[Int])
GET /take-list-tick-param controllers.Application.takeListTickedParam(`b[]`: List[Int])
GET /take-java-list controllers.Application.takeJavaList(x: java.util.List[java.lang.Integer])
GET /take-ticked-params controllers.Application.takeTickedParams(`b[]`: List[Int], `b%%`: String)
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This case was moved toroutes-compiler-routes-compilation-java

Comment on lines -43 to -46
it("should properly escape the host", function() {
var data = jsRoutesBadHost.controllers.Application.index();
assert(data.absoluteURL().indexOf("'}}};alert(1);a={a:{a:{a:'") >= 0)
});
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This check was moved toroutes-compiler-routes-compilation

Comment on lines -110 to -119
"use a new instance for each instantiated controller" in new WithApplication() {
override def running() = {
route(implicitApp, FakeRequest(GET, "/instance")) must beSome[Future[Result]].like {
case result => contentAsString(result) must_== "1"
}
route(implicitApp, FakeRequest(GET, "/instance")) must beSome[Future[Result]].like {
case result => contentAsString(result) must_== "1"
}
}
}
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This check was moved toroutes-compiler-routes-compilation

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mkurzmkurzAwaiting requested review from mkurz

At least 1 approving review is required to merge this pull request.

Assignees

@mkurzmkurz

Labels
None yet
Projects
Status: 👀 In review
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ihostage@mkurz

[8]ページ先頭

©2009-2025 Movatter.jp