question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide `Comparable` assertions for `URI`

See original GitHub issue

Summary

java.net.URI is a Comparable, so AbstractUriAssert should extend AbstractComparableAssert.

I assume this to be a minor, non-breaking change. I’d do a PR, but the overhead seems to be too big in my eyes.

Note: java.net.URL is not comparable.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
t1commented, Feb 8, 2022

Thanks for the offer. I know how to do all of that. I’ll be happy to do this when I have something more substantial to add.

1reaction
scordiocommented, Feb 8, 2022

Got it and I am happy to help get you onboarded. What you mentioned is sort of prerequisite for any contributions 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide Comparable assertions for URI #2487 - GitHub
Hi, as for test cases, methods of AbstractComparableAssert are already tested in org.assertj.core.api.comparable.AbstractComparableAssert_*_Test ...
Read more >
URI Declaration in Semantic Web Architecture - David Booth
A URI declaration permits assertions about a URI's associated resource to be classified into two groups: core assertions, which are provided by the...
Read more >
Comparing entire url through Assert.assertEquals
So assertEquals() will validate if two Strings are identical. Hence you see the error. Solution. To assert the presence of https://accounts.
Read more >
AssertJ - fluent assertions java library - GitHub Pages
AssertJ provides assertions specific to the object under test type, the following sections list the supported types grouped by categories. The provided ......
Read more >
org.assertj.core.api (AssertJ fluent assertions 2.3.0 API) - javadoc.io
Provides a Assert for the current object. ComparableAssert<S extends ... Assertion methods applicable to Comparable s. ... Assertion class for URI s.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found