Skip to content

Commit bfed5f0

Browse files
authored
Dspace 7.6 Updates (#1)
* Remove SupervisorService * Remove SupervisedItemService, add SubscribeService * Add log4j dependencies for compilation + testing * Fix typo
1 parent 444621b commit bfed5f0

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,17 @@
307307
</exclusion>
308308
</exclusions>
309309
</dependency>
310+
<dependency>
311+
<groupId>org.apache.logging.log4j</groupId>
312+
<artifactId>log4j-api</artifactId>
313+
<version>2.20.0</version>
314+
</dependency>
315+
<dependency>
316+
<groupId>org.apache.logging.log4j</groupId>
317+
<artifactId>log4j-core</artifactId>
318+
<version>2.20.0</version>
319+
<scope>test</scope>
320+
</dependency>
310321

311322
<!-- JAXB is no longer bundled for java 11
312323
compile only as this will be brought in through dspace-api in 7.x -->

src/test/java/org/dspace/TestContentServiceFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import org.dspace.content.service.RelationshipService;
3232
import org.dspace.content.service.RelationshipTypeService;
3333
import org.dspace.content.service.SiteService;
34-
import org.dspace.content.service.SupervisedItemService;
3534
import org.dspace.content.service.WorkspaceItemService;
35+
import org.dspace.eperson.service.SubscribeService;
3636

3737
/**
3838
* A {@link ContentServiceFactory} which returns mock services
@@ -119,13 +119,13 @@ public InstallItemService getInstallItemService() {
119119
}
120120

121121
@Override
122-
public SupervisedItemService getSupervisedItemService() {
123-
throw new UnsupportedOperationException();
122+
public SiteService getSiteService() {
123+
return siteService;
124124
}
125125

126126
@Override
127-
public SiteService getSiteService() {
128-
return siteService;
127+
public SubscribeService getSubscribeService() {
128+
throw new UnsupportedOperationException();
129129
}
130130

131131
@Override

src/test/java/org/dspace/TestEPersonServiceFactory.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import org.dspace.eperson.service.GroupService;
1616
import org.dspace.eperson.service.RegistrationDataService;
1717
import org.dspace.eperson.service.SubscribeService;
18-
import org.dspace.eperson.service.SupervisorService;
1918

2019
/**
2120
* {@link EPersonServiceFactory} for testing
@@ -52,8 +51,4 @@ public SubscribeService getSubscribeService() {
5251
throw new UnsupportedOperationException();
5352
}
5453

55-
@Override
56-
public SupervisorService getSupervisorService() {
57-
throw new UnsupportedOperationException();
58-
}
5954
}

src/test/java/org/dspace/pack/bagit/BagItPackerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
/**
4444
* Base class for all BagIt packing/unpacking tests. This performs initial setup so that the DSpaceKernel is not null
45-
* and so that some of the that are used through static contexts or have static initializers (e.g.
45+
* and so that classes used through static contexts or have static initializers (e.g.
4646
* {@link org.dspace.services.factory.DSpaceServicesFactory}, {@link org.dspace.core.Context}) can initialize and
4747
* retrieve any classes which are necessary for basic operations.
4848
*

0 commit comments

Comments
 (0)