Skip to content

Use getResourceAsStream instead of getResource in tests #101

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

Merged
merged 1 commit into from
Feb 8, 2018

Conversation

smurching
Copy link
Collaborator

Replace calls to getResource (which look for resource files only on the local disk) with calls to getResourceAsStream, which uses the classloader to search for resource files anywhere in the classpath.

Copy link
Contributor

@tomasatdatabricks tomasatdatabricks left a comment

Choose a reason for hiding this comment

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

Looks good to me, LGTM!

@codecov-io
Copy link

codecov-io commented Feb 7, 2018

Codecov Report

Merging #101 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #101   +/-   ##
=======================================
  Coverage   82.83%   82.83%           
=======================================
  Files          34       34           
  Lines        1975     1975           
  Branches       45       45           
=======================================
  Hits         1636     1636           
  Misses        339      339

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e47b398...db3ac76. Read the comment docs.

@sueann sueann merged commit 36e9b10 into databricks:master Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants