This is an automated email from the ASF dual-hosted git repository.

anmolnar pushed a commit to branch HBASE-29164
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 55f38b5316c4ab9a79e59b913bcc933ba58c998c
Author: Kevin Geiszler <[email protected]>
AuthorDate: Tue Jul 14 09:51:03 2026 -0400

    Fix JUnit 5 usage of assertEquals when a message is included
    
    Change-Id: Ic04f958c1764025b07acc2a124ae32704d67fae3
---
 .../hadoop/hbase/backup/IntegrationTestBackupRestoreBase.java  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/hbase-it/src/test/java/org/apache/hadoop/hbase/backup/IntegrationTestBackupRestoreBase.java
 
b/hbase-it/src/test/java/org/apache/hadoop/hbase/backup/IntegrationTestBackupRestoreBase.java
index a6e106ff461..dd64f68c389 100644
--- 
a/hbase-it/src/test/java/org/apache/hadoop/hbase/backup/IntegrationTestBackupRestoreBase.java
+++ 
b/hbase-it/src/test/java/org/apache/hadoop/hbase/backup/IntegrationTestBackupRestoreBase.java
@@ -478,12 +478,10 @@ public abstract class IntegrationTestBackupRestoreBase 
extends IntegrationTestBa
     for (FileStatus fileStatus : fileStatuses) {
       String walFileName = fileStatus.getPath().getName();
       String[] splitName = walFileName.split("\\.");
-      assertEquals("The WAL partition directory should only have files that 
start with 'wal_file'",
-        "wal_file", splitName[0]);
-      assertEquals(
-        "The timestamp in the WAL file's name should match the "
-          + "date for the WAL partition directory",
-        walPartitionDir.getName(), 
BackupUtils.formatToDateString(Long.parseLong(splitName[1])));
+      assertEquals("wal_file", splitName[0],
+        "The WAL partition directory should only have files that start with 
'wal_file'");
+      assertEquals(walPartitionDir.getName(), 
BackupUtils.formatToDateString(Long.parseLong(splitName[1])),
+        "The timestamp in the WAL file's name should match the date for the 
WAL partition directory");
     }
   }
 

Reply via email to