Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You would typically write a new UnitTest for each class you create. If you create a new class called RebalanceTask in the package org.apache.geode.internal.cache.control then you should also create a new test called RebalanceTaskTest in the same package but under src/test/java. This test should use JUnit 4 syntax and have a JUnit Category of type org.apache.geode.junit.categories.UnitTest. All dependencies should generally be Mocks or Spies created with Mockito or fakes that are coded specifically for use by the test in order to isolate the code being tested to just RebalanceTaskthe class under test. The test should not use the network or file system and it should complete within milliseconds.

...