ctubbsii commented on a change in pull request #2427: URL: https://github.com/apache/accumulo/pull/2427#discussion_r810687659
########## File path: core/src/test/java/org/apache/accumulo/core/client/mapred/AccumuloMultiTableInputFormatTest.java ########## @@ -29,24 +29,20 @@ import org.apache.accumulo.core.util.Pair; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.JobConf; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.TestName; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInfo; @Deprecated(since = "2.0.0") public class AccumuloMultiTableInputFormatTest { - @Rule - public TestName testName = new TestName(); - /** * Verify {@link org.apache.accumulo.core.client.mapreduce.InputTableConfig} objects get correctly * serialized in the JobContext. */ @Test - public void testTableQueryConfigSerialization() { - String table1Name = testName.getMethodName() + "1"; - String table2Name = testName.getMethodName() + "2"; + public void testTableQueryConfigSerialization(TestInfo testInfo) { + String table1Name = testInfo.getDisplayName() + "1"; Review comment: I had an alternate idea for this, in my latest code review, using a `Function<TestInfo,String>` or similar. The suggestion above could also be done that way, but having it live in AccumuloITBase would only affect integration tests. The tests in other modules would still benefit from using something shorter in many of the tests. See my recent code review for an example. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org