java - Unable to resolve reverse routing methods in IntelliJ -


i'm following 1 of play framework tutorials, i'm getting compile errors whenever try use reverse routing. firstly,

public static result javascriptroutes() {     response().setcontenttype("text/javascript");     return ok(         routes.javascriptrouter("jsroutes",             controllers.routes.javascript.projects.add(),             controllers.routes.javascript.projects.delete(),             controllers.routes.javascript.projects.rename(),             controllers.routes.javascript.projects.addgroup()         )     ); } 

where error shown in intellij 'cannot resolve method javascriptrouter(java.lang.string, ?, ?, ?, ?)'

but in unit test:

@test public void notauthenticated() {     result result = callaction(             controllers.routes.ref.application.index(),             fakerequest()     );     assertequals(303, status(result));     assertequals("/login", header("location", result)); } 

where cannot resolve index method.

is problem intellij, or missing within play?

for first part, here entry in routes file:

get     /assets/javascripts/routes  controllers.application.javascriptroutes() 

and controller, projects, has got defined methods.

file -> project structure

select sources in right pane

add source folder

target/scala-xxx/classes_managed

target/scala-xxx/src_managed/main


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -