diff options
author | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-11-29 14:49:35 +0100 |
---|---|---|
committer | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-11-29 14:49:35 +0100 |
commit | 0db179c65ddfc45379b0cbc6f0782ef538d1b76f (patch) | |
tree | 8a123b6c81b9bdea2bf67af7489a42d8738f7895 /abi-check-plugin/src | |
parent | a3e8241dbfda9952f9be93c23e073df4efd09f3a (diff) |
Remove unwanted dependencies and use JUnit5.
Diffstat (limited to 'abi-check-plugin/src')
-rw-r--r-- | abi-check-plugin/src/test/java/com/yahoo/abicheck/AccessConversionTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/abi-check-plugin/src/test/java/com/yahoo/abicheck/AccessConversionTest.java b/abi-check-plugin/src/test/java/com/yahoo/abicheck/AccessConversionTest.java index f64d9c3b8fc..eaa49789f2f 100644 --- a/abi-check-plugin/src/test/java/com/yahoo/abicheck/AccessConversionTest.java +++ b/abi-check-plugin/src/test/java/com/yahoo/abicheck/AccessConversionTest.java @@ -1,10 +1,11 @@ package com.yahoo.abicheck; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; import com.yahoo.abicheck.collector.Util; import java.util.Arrays; -import org.junit.Test; +import org.junit.jupiter.api.Test; import org.objectweb.asm.Opcodes; public class AccessConversionTest { @@ -38,9 +39,10 @@ public class AccessConversionTest { Util.fieldFlags)); } - @Test(expected = IllegalArgumentException.class) + @Test public void testUnsupportedFlags() { // ACC_MODULE is not a valid flag for fields - Util.convertAccess(Opcodes.ACC_MODULE, Util.fieldFlags); + assertThrows(IllegalArgumentException.class, + () -> Util.convertAccess(Opcodes.ACC_MODULE, Util.fieldFlags)); } } |