Skip to content

Commit

Permalink
sabi-144 Migrate Testframework from junit4 to junit5
Browse files Browse the repository at this point in the history
- Migrated Server Module (fixed junit, hazelcast serialization problem)
  • Loading branch information
StefanSchubert committed Nov 25, 2023
1 parent 51f814b commit 5268739
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sabi-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,18 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>${maven-surefire-plugin.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-instrument</artifactId>
<version>${spring.instrument.version}</version>
</dependency>
</dependencies>
<configuration>
<test>de.bluewhale.sabi.MasterTestSuite</test>
<!--suppress UnresolvedMavenProperty -->
<argLine>
-javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring.instrument.version}/spring-instrument-${spring.instrument.version}.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import jakarta.validation.constraints.NotNull;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
Expand Down Expand Up @@ -91,6 +92,7 @@ public List<MeasurementTo> listMeasurementsFilteredBy(Long pTankID, Integer pUni


@Override
@Cacheable("unitsCache")
public @NotNull List<UnitTo> listAllMeasurementUnits() {
List<UnitTo> unitToList = Collections.emptyList();
List<UnitEntity> unitEntityList = unitRepository.findAll();
Expand Down

0 comments on commit 5268739

Please sign in to comment.