Skip to content

Commit

Permalink
Dspace 7.6 Updates (#1)
Browse files Browse the repository at this point in the history
* Remove SupervisorService

* Remove SupervisedItemService, add SubscribeService

* Add log4j dependencies for compilation + testing

* Fix typo
  • Loading branch information
mikejritter authored Oct 24, 2023
1 parent 444621b commit bfed5f0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,17 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.20.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
<scope>test</scope>
</dependency>

<!-- JAXB is no longer bundled for java 11
compile only as this will be brought in through dspace-api in 7.x -->
Expand Down
10 changes: 5 additions & 5 deletions src/test/java/org/dspace/TestContentServiceFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
import org.dspace.content.service.RelationshipService;
import org.dspace.content.service.RelationshipTypeService;
import org.dspace.content.service.SiteService;
import org.dspace.content.service.SupervisedItemService;
import org.dspace.content.service.WorkspaceItemService;
import org.dspace.eperson.service.SubscribeService;

/**
* A {@link ContentServiceFactory} which returns mock services
Expand Down Expand Up @@ -119,13 +119,13 @@ public InstallItemService getInstallItemService() {
}

@Override
public SupervisedItemService getSupervisedItemService() {
throw new UnsupportedOperationException();
public SiteService getSiteService() {
return siteService;
}

@Override
public SiteService getSiteService() {
return siteService;
public SubscribeService getSubscribeService() {
throw new UnsupportedOperationException();
}

@Override
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/org/dspace/TestEPersonServiceFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.dspace.eperson.service.GroupService;
import org.dspace.eperson.service.RegistrationDataService;
import org.dspace.eperson.service.SubscribeService;
import org.dspace.eperson.service.SupervisorService;

/**
* {@link EPersonServiceFactory} for testing
Expand Down Expand Up @@ -52,8 +51,4 @@ public SubscribeService getSubscribeService() {
throw new UnsupportedOperationException();
}

@Override
public SupervisorService getSupervisorService() {
throw new UnsupportedOperationException();
}
}
2 changes: 1 addition & 1 deletion src/test/java/org/dspace/pack/bagit/BagItPackerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

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

0 comments on commit bfed5f0

Please sign in to comment.