mingli1/Unlucky

ResourceManager cannot be instantiated during junit testing bug

Opened this issue · 0 comments

Arrange:

  • Configuring the environment (with for example Gradle v3.3).
  • Importing the junit .jar files, so we can run junit test cases.

Act:

  • Creating a TestFile where we want to run the test case.
  • Making an instance of ResourceManager Class
  • Check if the instance is created of not with assertNull.

Excepting:

  • We can make an instance of the ResourceManager class and run different test cases on it to check, if it's working properly or not.

Actually:

  • During the test, we got a NullPointerException.

bug1