Commit Graph

42 Commits

Author SHA1 Message Date
Kim Shepherd
208cac08d5 modifying unit tests as per CI feedback, stubbings now unnecessary 2023-05-21 15:43:26 +12:00
Luca Giamminonni
18573ff054 [CST-5587] Various improvements 2022-06-20 15:00:14 +02:00
Luca Giamminonni
d6b66c95f0 [CST-5587] Fixed orcid tests 2022-04-28 12:26:12 +02:00
Huma Zafar
8c44a95c7b Adds check for whether source and target collections are the same when moving an item. (#8055) 2022-02-14 14:19:09 -05:00
Mark H. Wood
87cfac01d4 Replace deprecated JUnit and Mockito statics. #2956 2020-11-18 16:12:41 -05:00
Tim Donohue
afb78e1e03 Merge pull request #2940 from atmire/w2p-72492_authorization-feature-for-edit-item-in-REST
Features endpoint - Edit item permissions in REST
2020-09-23 16:40:50 -05:00
Peter Nijs
fae212d281 72517: ITs for authorization features for edit item in REST
- Fix for getItemObject() in ItemServiceImpl and CommunityServiceImpl for DELETE actions
2020-08-25 17:39:50 +02:00
Andrea Bollini
76181a6829 Restore test for authority as was before - no authorities for value pairs 2020-06-25 17:37:24 +02:00
Tim Donohue
3ae9009dbd Fixes to various errorprone warnings in tests 2020-02-13 15:31:46 -06:00
Tim Donohue
4537897e17 Final removal of JMockit. Move last tests to Mockito. Cleanup unused tests & resources 2020-02-13 13:43:49 -06:00
Tim Donohue
ebfc5dfb1f Refactor to no longer use JMockit mocks. 2020-02-13 13:43:49 -06:00
Tim Donohue
33a2e94d44 Refactor to use Mockito (mostly) 2020-02-13 13:43:48 -06:00
Marie Verdonck
c727471309 - Unit tests for findByCollectionMapping (incl Pagination) & countByCollectionMapping 2019-07-15 11:45:06 +02:00
Tim Donohue
ceed829800 Merge branch 'master' into configurable_entities 2018-12-06 17:05:31 +00:00
Raf Ponsaerts
b905f69d63 Refactored the usages of MetadataSchema.DC to use the enum instead 2018-11-21 09:35:11 +01:00
Patrick Trottier
7f4b4e9f8a Convert getLogger() and Log4J imports for Log4J 2 2018-11-09 08:41:42 -05:00
Tim Donohue
200cede397 Upgrade to commons-lang3 to avoid dependency conv issues. 2018-11-08 20:35:57 +00:00
Terry Brady
06ca8809e1 port PR 1867 2018-08-06 10:17:52 -07:00
Tim Donohue
3e45d113dc Fix dspace-api unit tests to align with code style 2018-02-28 11:38:22 -06:00
Tim Donohue
8a48f782ea Fix dspace-api module per new code style 2018-02-21 15:23:58 -06:00
Luigi Andrea Pascarelli
22e9844987 [DS-3699] manage valuepairs and vocabulary authority both controlled and required configuration setup to true 2017-10-25 17:03:45 +02:00
frederic
7f252b6289 DS-3406 unit tests for getCollection/getCommunity for different dspace objects 2017-06-09 19:49:57 +00:00
Tom Desair
cc3342894b Fix bug so that comparator can be used for sets 2017-06-09 19:49:21 +00:00
Tom Desair
d39d8134d0 Fixing tests 2017-06-09 19:49:11 +00:00
Terry Brady
c29745d421 Make destroy more forgiving of test failures 2017-05-31 09:04:54 -07:00
Andrea Bollini
651b49e05a DS-28DS-2895 add unit test to expose the wrong behaviour
slightly renamed the method isAnInprogressSubmission in isInProgressSubmission to make it uniform with DSpace 5 and added to the service interface to allow testing and easy reuse
2016-08-20 15:41:29 +02:00
KevinVdV
bc9798c753 [DS-3125] Submitters cannot delete bistreams of workspaceitems 2016-04-15 13:00:37 +02:00
Tim Donohue
628783fb9e Update Test Environment to use its own local.cfg INSTEAD OF dspace.cfg.more / merging multiple configs 2016-01-25 14:36:00 -06:00
KevinVdV
54222f3c1d DSpace refactored service api 2015-08-19 11:54:32 +02:00
Mark H. Wood
e440e64739 [DS-1883] Un-deprecate DCValue and rename it.
It seems that the reason for deprecation was objection to the *name*,
since it is not strictly for DC anymore.
2014-10-31 14:48:24 -04:00
Tim Donohue
55dd906250 Fix broken ItemTest.testMove() (fails on PostgreSQL). Also fix broken/backwards logic in Collection.removeItem() 2014-10-31 14:17:37 +00:00
KevinVdV
87cd7145c9 Support Metadata On All DSpaceObjects 2014-09-24 16:16:06 +02:00
Tim Donohue
56fda36375 Fix bad test permissions. Add a new test to check Community Admins can edit items under their Community 2014-08-12 12:59:47 -05:00
Tim Donohue
a345832905 Fixe expectations syntax for latest JMockit. Minor test cleanup. 2014-08-11 16:56:05 -05:00
Tim Donohue
6512718272 Fix broken test. Don't assume Item of ID=1 exists 2014-07-24 18:34:01 +00:00
Tim Donohue
1182c54b72 More improvements to fail() messages (add primary error msg) 2013-10-23 14:55:15 -05:00
Tim Donohue
82a413511c Several Unit test fixes. Add a Mock Indexer for Solr. Add a language for primary test Eperson. Do better context cleanup. Improve fail messages with actual errors. 2013-10-23 13:58:10 -05:00
Stuart Lewis
b73d348a69 [DS-806] Item.match() incorrect logic for schema testing
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6053 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2011-01-27 00:54:53 +00:00
Stuart Lewis
c33c01c4de [DS-806] junit test - should cause bamboo to report a test failure. Patch to fix this to be applied shortly.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6050 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2011-01-27 00:22:26 +00:00
Mark Diggory
0d30c67d9e Updated Licenses
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5844 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-11-12 05:29:14 +00:00
Graham Triggs
feaaa79968 Fixed date test so that it only checks for current day (fragile test for millisecond accuracy)
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5518 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-21 14:50:12 +00:00
Stuart Lewis
87a29e8cc4 [DS-643] New testing framework (GSoC 2010) - Removing dspace-test module, and adding to dspace-api instead
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5475 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-19 22:18:58 +00:00