Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Testing the Embedded Examples #4056

Merged
merged 14 commits into from
Sep 11, 2019

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Sep 4, 2019

The /examples/embedded/ code is starting show some bit-rot, so it's time to add testing to them.

I'm implementing a createServer(int port) style method for each example that can be both used from the main(String args[]) method with a static value (like 8080) and also from junit testing with a port 0 (wildcard) for testing reasons.

Signed-off-by: Joakim Erdfelt [email protected]

Signed-off-by: Joakim Erdfelt <[email protected]>
@joakime joakime added the Test label Sep 4, 2019
@joakime joakime added this to the 9.4.x milestone Sep 4, 2019
@joakime joakime self-assigned this Sep 4, 2019
+ Also made ContextHandler warning message about features
  that are unimplemented (and you should use ServletContextHandler)
  more clear. (this helped with diagnosing where the bug was
  in ServletHolder)

Signed-off-by: Joakim Erdfelt <[email protected]>
@joakime joakime marked this pull request as ready for review September 10, 2019 01:47
@joakime joakime requested review from gregw and sbordet September 10, 2019 01:47
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

Just some initial comments... I'll look a bit deeper later today.

+ Moved realm.properties to src/main/resources/etc/
+ Ensured that surefire's useManifestOnlyJar=false
  to enable taglibs to be found, and jstl to work.

Signed-off-by: Joakim Erdfelt <[email protected]>
@joakime joakime requested a review from gregw September 10, 2019 18:30
@joakime joakime merged commit 43e10f8 into jetty-9.4.x Sep 11, 2019
@joakime joakime deleted the jetty-9.4.x-testing-embedded-examples branch September 11, 2019 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants