Commit Graph

3953 Commits

Author SHA1 Message Date
Tim Donohue
6a14699bd1 Add more Tests for Context. Bug fixes based on that. Enhance javadocs in HibernateDBConnection 2020-02-14 08:57:35 -06:00
Kevin Van de Velde
ffc1d37f8e Merge branch 'master' into DS-4389-improving-patch-system-framework 2020-02-14 09:14:20 +01:00
Tim Donohue
fb8ef5044b Fix checkstyle errors 2020-02-13 15:31:47 -06:00
Tim Donohue
4f9fb7d339 Minor fix to test cleanup 2020-02-13 15:31:47 -06:00
Tim Donohue
e69a63c5a7 Fix a number of errorprone warnings in tests. 2020-02-13 15:31:47 -06:00
Tim Donohue
db09a70d8f Fix deprecation of ObjectUtils.toString 2020-02-13 15:31:46 -06:00
Tim Donohue
3ae9009dbd Fixes to various errorprone warnings in tests 2020-02-13 15:31:46 -06:00
Tim Donohue
14586eb594 Fix errorprone warnings (UnusedVariable, out of order params) 2020-02-13 15:31:46 -06:00
Tim Donohue
82c90ca15c Fix errorprone warning https://errorprone.info/bugpattern/StringSplitter 2020-02-13 15:31:45 -06:00
Tim Donohue
f73b2b5fea Fix deprecation warnings 2020-02-13 15:31:45 -06:00
Tim Donohue
408acc2b90 Fix deprecation warning 2020-02-13 15:31:45 -06:00
Tim Donohue
1b40e6d6e9 Minor test class refactors to remove errorprone warnings. 2020-02-13 15:31:45 -06:00
Tim Donohue
f50156d320 Refactor to remove deprecation warning for ObjectUtils.equals 2020-02-13 15:31:45 -06:00
Tim Donohue
820722d2e6 Merge pull request #2657 from tdonohue/DS-4257_url_config_cleanup
[DS-4257] dspace.url and dspace.baseUrl config cleanup
2020-02-13 14:52:14 -06:00
Tim Donohue
33bae06be6 Fix illegal reflective access from old version of Axiom. Also fix Geronimo warnings in builds. 2020-02-13 13:43:50 -06:00
Tim Donohue
7c335c8170 Updates to all maven plugin versions. General POM cleanup. 2020-02-13 13:43:50 -06:00
Tim Donohue
3894b9c7fc Move xml-maven-plugin to parent POM. It is already accessing XMLs outside of dspace-api. 2020-02-13 13:43:50 -06:00
Tim Donohue
447b7722f0 Test fixes after rebase. Remove unnecessary new code. 2020-02-13 13:43:49 -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
eb8c0cc605 Move context.complete() call to avoid closing passed in context 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
40f053751b Refactor AuthorizeUtil to NOT cache services (in static final variables). This allows authorization to be more easily mocked/overridden in tests. 2020-02-13 13:43:49 -06:00
Tim Donohue
b53be1f471 Refactor MockSolrLoggerServiceImpl to use Mockito. Remove FakeDatabaseReader 2020-02-13 13:43:49 -06:00
Tim Donohue
9b990f1834 Refactor to use Mockito (or no mocks) 2020-02-13 13:43:49 -06:00
Tim Donohue
7deed9040f Update to use Mockito. Other minor changes 2020-02-13 13:43:49 -06:00
Tim Donohue
33a2e94d44 Refactor to use Mockito (mostly) 2020-02-13 13:43:48 -06:00
Tim Donohue
0118c2bbd3 Refactor to use Mockito 2020-02-13 13:43:48 -06:00
Tim Donohue
6248867de7 Refactor tests to use Mockito instead of JMockit 2020-02-13 13:43:48 -06:00
Tim Donohue
eb53950660 Correct location of MockitoJUnitRunner (new package) 2020-02-13 13:43:48 -06:00
Tim Donohue
93c39cf318 Refactor (most) tests to use Mockito instead of JMockit 2020-02-13 13:43:48 -06:00
Tim Donohue
3ab37aafb9 Refactor tests to use Mockito instead of JMockit 2020-02-13 13:43:48 -06:00
Tim Donohue
e97218616d Implement destroy properly & fix an incorrect test 2020-02-13 13:43:48 -06:00
Tim Donohue
8c7127ed8c Refactor tests to use Mockito 2020-02-13 13:43:48 -06:00
Tim Donohue
412c8a1ec8 Refactor tests to use Mockito instead of JMockit 2020-02-13 13:43:48 -06:00
Tim Donohue
d6a4bf21b9 Remove stubs that Mockito says are not used. Then remove duplicative tests. 2020-02-13 13:43:48 -06:00
Tim Donohue
cfde3e905b Switch CommunityTest to mostly using Mockito (exceptions for Util classes) 2020-02-13 13:43:48 -06:00
Tim Donohue
db18ddfb5a Update dependencies. Fixes Maven issues with initializing dspace.dir 2020-02-13 13:43:48 -06:00
Tim Donohue
78fb4cfe82 Remove MockUtil and replace with handling NPE that can occur when running Util in test mode. 2020-02-13 13:43:47 -06:00
Tim Donohue
1982ceb076 Fix errors reported by latest version of ErrorProne 2020-02-13 13:43:47 -06:00
Tim Donohue
f3e4bfa29a Reenable ErrorProne on JDK11 2020-02-13 13:43:47 -06:00
Tim Donohue
ef6e32f435 Base dependency updates for JDK11, based on cwilper's PR#2611 2020-02-13 13:43:47 -06:00
Tim Donohue
b116c55714 Refactor code to remove the need for a "hostname" configuration. 2020-02-13 13:40:35 -06:00
Tim Donohue
d455d7df87 Fix minor test & checkstyle failures 2020-02-13 13:40:34 -06:00
Tim Donohue
c55f29de6a Replace dspace.hostname with dspace.ui.hostname. Enhance descriptions of how/where configs are used 2020-02-13 13:40:34 -06:00
Tim Donohue
e8180f11cb Replace all usages of dspace.url with either dspace.ui.url or dspace.server.url (depending on use case) 2020-02-13 13:40:33 -06:00
Tim Donohue
5e3e9b8f9d Replace all usages of dspace.baseUrl with either dspace.server.url or dspace.ui.url (depending on use case) 2020-02-13 13:40:23 -06:00
Mykhaylo Boychuk
c5bf2b2346 added unit test for addAccessCondition and removeAccessCondition 2020-02-12 18:01:13 +01:00
Tim Donohue
14445d599c Merge pull request #2604 from Micheleboychuk/resourcepolicies
DS-4398 initial implementation of the resource policies endpoint
2020-02-12 09:39:39 -06:00
Andrea Bollini
0201ef1055 Initial implementation of the authorizations endpoints 2020-02-09 15:56:42 +01:00
Mykhaylo Boychuk
325f992936 uniform naming and code cleanup 2020-02-04 15:24:43 +01:00