Skip to content

Commit

Permalink
Fix dependency versions to be compatible with JDK8.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrozanec committed Mar 26, 2023
1 parent f77e3f9 commit 2633b80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<properties>
<slf4j.version>2.0.7</slf4j.version>
<junit.version>5.8.1</junit.version>
<mockito.version>5.2.0</mockito.version>
<mockito.version>4.11.0</mockito.version>

<github.global.server>github</github.global.server>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -119,7 +119,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>6.0.7</version>
<version>5.3.26</version>
<scope>test</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/cronutils/parser/CronParserFieldTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.mockito.Matchers;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.MockedConstruction;
import org.mockito.Mockito;
Expand Down Expand Up @@ -51,7 +51,7 @@ public void setUp() throws Exception {
testFieldName = CronFieldName.SECOND;

mockedConstruction = Mockito.mockConstruction(FieldParser.class, (mock, context) -> {
Mockito.when(mock.parse(Matchers.anyString())).thenReturn(mockParseResponse);
Mockito.when(mock.parse(ArgumentMatchers.anyString())).thenReturn(mockParseResponse);
mockParser = mock;
});

Expand Down

0 comments on commit 2633b80

Please sign in to comment.