forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-32283 Remove tight binding sitestats -> kernel (sakaiproject#4029)
* SAK-32283 Remove tight binding sitestats -> kernel Sitestats implements lots of kernel APIs for testing, this means that when a kernel API changes the test classes in sitestats need updated. In almost all cases the change is just to include an automatically generated stub method. Instead we generate these stub methods using mockito for unit tests and bytebuddy for integration tests. It also makes the mock classes much clearer as you can clearly see what is needed for the tests to pass, rather than being blinded by the autogenerated stub methods. Mockito isn't designed for multithreaded integrations tests and re-writing the tests to use mockito throughout is lots more work so this is a interim solution. I also fixed up one of the performance tests so it runs against hsqldb but doesn't practically test anything. The reason is so that the code doesn't rot, otherwise if it's not compiled/run it's easy to break in a refactoring or library upgrade when the fix is trivial as you're doing lots of other similar fixes. * Fixing typo.
- Loading branch information
Showing
39 changed files
with
294 additions
and
4,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.