Skip to content

Test for programmatic-registration module is incorrect #320

Open
@orelgenya

Description

This test wrong at many points:

  • test returns before calling ParentServlet, which is responsible for ChildServlet registration;
  • webclient calls wrong URLs (/ is redundant and don't match with mappings);
  • mapping for ChildServlet isn't set (dynamically)
  • fail(..) statement prevents execution of meaningful part of the test;
  • and finally it wouldn't work because programmatic registration is impossible after ServletContext initialization is finished.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions