From f9588de24749a5892c9c9e1703c1d3ef18f6c85a Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 26 Aug 2023 15:22:38 +0200 Subject: [PATCH] Reinstate FailingBeforeAndAfterMethodsTestNGTests The tests were ignored due to "Fails against TestNG 6.11"; however, these tests pass against the current version of TestNG that we build against (7.8.0). --- .../junit4/FailingBeforeAndAfterMethodsTestNGTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/context/junit4/FailingBeforeAndAfterMethodsTestNGTests.java b/spring-test/src/test/java/org/springframework/test/context/junit4/FailingBeforeAndAfterMethodsTestNGTests.java index c14cc3afa3..5c729de95e 100644 --- a/spring-test/src/test/java/org/springframework/test/context/junit4/FailingBeforeAndAfterMethodsTestNGTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/junit4/FailingBeforeAndAfterMethodsTestNGTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package org.springframework.test.context.junit4; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -92,8 +91,7 @@ public class FailingBeforeAndAfterMethodsTestNGTests { @Test - @Ignore("Fails against TestNG 6.11") - public void runTestAndAssertCounters() throws Exception { + public void runTestAndAssertCounters() { TrackingTestNGTestListener listener = new TrackingTestNGTestListener(); TestNG testNG = new TestNG(); testNG.addListener(listener);