Branch: refs/heads/release/1.x

  Home:   https://github.com/jenkinsci/stashnotifier-plugin

  Commit: 7bb7ef74f6813a60089a72ea3e25dd77d3b041fa

      
https://github.com/jenkinsci/stashnotifier-plugin/commit/7bb7ef74f6813a60089a72ea3e25dd77d3b041fa

  Author: René Scheibe <rene.sche...@gmail.com>

  Date:   2020-01-05 (Sun, 05 Jan 2020)



  Changed paths:

    M src/test/java/org/jenkinsci/plugins/stashNotifier/StashNotifierTest.java



  Log Message:

  -----------

  Use a mocked version of JenkinsLocationConfiguration in tests



Otherwise its constructor calls `load()` which results in a 
`NullPointerException`

because it tries to access the `ServletContext` which is not available in tests.



This exception did not affect the test results but was confusing

when looking at the test outputs.





  Commit: bdf82ad449c633a38f724c9a5e15fe7cd453ae38

      
https://github.com/jenkinsci/stashnotifier-plugin/commit/bdf82ad449c633a38f724c9a5e15fe7cd453ae38

  Author: Pavel Batanov <pa...@batanov.me>

  Date:   2020-01-05 (Sun, 05 Jan 2020)



  Changed paths:

    M src/test/java/org/jenkinsci/plugins/stashNotifier/StashNotifierTest.java



  Log Message:

  -----------

  Merge pull request #252 from darxriggs/fix-NullPointerExceptions-in-tests



Use a mocked version of JenkinsLocationConfiguration in tests





Compare: 
https://github.com/jenkinsci/stashnotifier-plugin/compare/b924703dd2f1...bdf82ad449c6

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-commits+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/stashnotifier-plugin/push/refs/heads/release/1.x/b92470-bdf82a%40github.com.

Reply via email to