• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TAMULib / IRIIIFService / 11410860056

18 Oct 2024 08:51PM UTC coverage: 48.862% (-33.2%) from 82.103%
11410860056

Pull #151

github

kaladay
Issue 150: Fix discovered problems and update unit tests.

This is a follow up to the commit fe69b97d4.

A bug with the processing of the percent encoded URLs is due to custom code being used to build the RDF Model.
Remove that code and use the Apache Jena API directly.
This fixes the problems but changes the network HTTP fetch approach that forces a change to the unit test logic.

Several unit tests are now failing, possibly due to problems exposed by the new testing approach.
I ran out of time and so I am simply disabling tests that I have not had enough time to determine what is wrong.

The unit tests exposed a NULL pointer error handling in the `getMimeType()` function.
The headers is being returned as `NULL` and it is not being safely handled.
The cause of this is unknown and needs further investigation.
Regardless of this problem, the `getMimeType()` should not be failing on a `NULL` pointer error and now no longer is.
The `try..catch..` in that function is hiding the actual error and has been removed.

The original `createRdfModel()` has been copied over into individual tests to avoid rewriting all of the existing unit tests.
These needs to be changed and removed in the future.
Pull Request #151: Issue 150: Fix problems with encoding/decoding and add encoding unit tests.

2 of 15 new or added lines in 3 files covered. (13.33%)

402 existing lines in 19 files now uncovered.

601 of 1230 relevant lines covered (48.86%)

0.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/main/java/edu/tamu/iiif/exception/NotFoundException.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc