Skip to content

Commit ef9f412

Browse files
committed
Remove @EnabledForJreRange for Java 17
Since our new baseline in Java 17, there is no need for these conditionals anymore. Signed-off-by: nscuro <nscuro@protonmail.com>
1 parent 7bf7b34 commit ef9f412

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/test/java/org/cyclonedx/util/BomUtilsTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import org.cyclonedx.Version;
2323
import org.cyclonedx.model.Hash;
2424
import org.junit.jupiter.api.Test;
25-
import org.junit.jupiter.api.condition.EnabledForJreRange;
26-
import org.junit.jupiter.api.condition.JRE;
2725

2826
import java.io.File;
2927
import java.io.IOException;
@@ -58,8 +56,7 @@ public void calculateHashes() throws Exception {
5856
}
5957

6058
@Test
61-
@EnabledForJreRange(min = JRE.JAVA_17)
62-
public void calculateSha3HashesOnJava17AndHigher() throws Exception {
59+
public void calculateSha3Hashes() throws Exception {
6360
final File file = new File(Objects.requireNonNull(this.getClass().getResource("/hashtest.txt")).toURI());
6461

6562
final List<Hash> hashes = BomUtils.calculateHashes(file, Version.VERSION_12);
@@ -84,8 +81,7 @@ public void calculateHashesForBigFile() throws Exception {
8481
}
8582

8683
@Test
87-
@EnabledForJreRange(min = JRE.JAVA_17)
88-
public void calculateSha3HashesForBigFileOnJava17AndHigher() throws Exception {
84+
public void calculateSha3HashesForBigFile() throws Exception {
8985
final File file = generateBigFileWithReproductiveContent();
9086

9187
final List<Hash> hashes = BomUtils.calculateHashes(file, Version.VERSION_12);

0 commit comments

Comments
 (0)