Skip to content

bugs:jobby 2.9.1,create(io.jooby.Context)' in 'io.jooby.Formdata' cannot be applied to '()' #2045

@kindywu

Description

@kindywu

https://jooby.io/#testing-unit-testing

public class TestApp {

@test
public void test() {
MockRouter router = new MockRouter(new App());
MockContext context = new MockContext()
.setForm(Formdata.create()//here
.put("name", "Test!")
);
assertEquals("Test!", router.post("/", context).value());
}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions