Skip to content

Commit

Permalink
Merge pull request #532 from jamesmudd/java-21
Browse files Browse the repository at this point in the history
Add Java 21 CI builds
  • Loading branch information
jamesmudd authored Jan 22, 2024
2 parents 59ad125 + dc0aadc commit c675c5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ 'macos-latest', 'ubuntu-latest', 'windows-latest', ['self-hosted', 'ARM64'] ]
java: [ '8', '11', '17' ]
java: [ '8', '11', '17', '21' ]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions jhdf/src/test/java/io/jhdf/HdfFileChannelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
import io.jhdf.storage.HdfFileChannel;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledForJreRange;
import org.junit.jupiter.api.condition.DisabledOnJre;
import org.junit.jupiter.api.condition.JRE;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
Expand Down Expand Up @@ -82,6 +85,7 @@ void testReadingChannelThrows() throws IOException {
}

@Test
@DisabledForJreRange(min = JRE.JAVA_17)
void testMap() throws IOException {
MappedByteBuffer mockMappedByteBuffer = mock(MappedByteBuffer.class);
when(fc.map(any(MapMode.class), anyLong(), anyLong())).thenReturn(mockMappedByteBuffer);
Expand Down

0 comments on commit c675c5c

Please sign in to comment.