From 3091afe4534611b9fc0eba874f43192ab6676c7e Mon Sep 17 00:00:00 2001 From: Said BOUDJELDA Date: Fri, 24 Nov 2023 21:31:31 +0100 Subject: [PATCH] upgrade testng dependency to version 7.8.0 --- api/pom.xml | 4 +++- api/src/test/java/org/jboss/cdi/api/test/CDITest.java | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index 94405952..8bb82d77 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -128,6 +128,7 @@ 2.0.1 5.0.0 2.1.0 + 7.8.0 @@ -137,7 +138,7 @@ org.testng testng - 6.8.8 + ${testng.version} @@ -379,6 +380,7 @@ Jakarta Contexts and Dependency Injection API
Jakarta Contexts and Dependency Injection ${project.version}]]>
+ cdi-dev@eclipse.org.
Copyright © 2018,2022 Eclipse Foundation.
diff --git a/api/src/test/java/org/jboss/cdi/api/test/CDITest.java b/api/src/test/java/org/jboss/cdi/api/test/CDITest.java index 00bfd4b7..323c75ec 100644 --- a/api/src/test/java/org/jboss/cdi/api/test/CDITest.java +++ b/api/src/test/java/org/jboss/cdi/api/test/CDITest.java @@ -53,7 +53,7 @@ public void setUp() throws Exception { } @Test(expectedExceptions = IllegalStateException.class) - public void testWithoutServiceFile() throws Exception { + public void testWithoutServiceFile() throws IllegalStateException { CDI.current(); } @@ -96,7 +96,7 @@ public void testWithTwoGoodCDIProvider() throws Exception { fw.write('\n'); fw.write(DummyCDIProvider.class.getName()); fw.close(); - Assert.assertTrue(CDI.current().getClass().equals(DummyCDIProvider.DummyCDI.class)); + Assert.assertEquals(DummyCDIProvider.DummyCDI.class, CDI.current().getClass()); } @@ -107,7 +107,7 @@ public void testWithTwoGoodCDIProviderReverse() throws Exception { fw.write('\n'); fw.write(DummyCDIProvider2.class.getName()); fw.close(); - Assert.assertTrue(CDI.current().getClass().equals(DummyCDIProvider.DummyCDI.class)); + Assert.assertEquals(DummyCDIProvider.DummyCDI.class, CDI.current().getClass()); } @Test @@ -117,7 +117,7 @@ public void testWithTwoCDIProviderOneWithNullCDIAndOneGood() throws Exception { fw.write('\n'); fw.write(DummyCDIProvider2.class.getName()); fw.close(); - Assert.assertTrue(CDI.current().getClass().equals(DummyCDIProvider2.DummyCDI2.class)); + Assert.assertEquals(DummyCDIProvider2.DummyCDI2.class, CDI.current().getClass()); } @@ -130,7 +130,7 @@ public void testWithThreeCDIProviderOneWithNullCDIAndOthersGood() throws Excepti fw.write('\n'); fw.write(DummyCDIProvider.class.getName()); fw.close(); - Assert.assertTrue(CDI.current().getClass().equals(DummyCDIProvider.DummyCDI.class)); + Assert.assertEquals(DummyCDIProvider.DummyCDI.class, CDI.current().getClass()); }