Skip to content

Commit fdd8b7f

Browse files
committed
Fix test
1 parent 618a86b commit fdd8b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/world/bentobox/bentobox/AbstractCommonSetup.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public void checkSpigotMessage(String expectedMessage, int expectedOccurrences)
280280
List<TextComponent> capturedMessages = captor.getAllValues();
281281

282282
// Count the number of occurrences of the expectedMessage in the captured messages
283-
long actualOccurrences = capturedMessages.stream().map(component -> component.toPlainText()) // Convert each TextComponent to plain text
283+
long actualOccurrences = capturedMessages.stream().map(component -> component.toLegacyText()) // Convert each TextComponent to plain text
284284
.filter(messageText -> messageText.contains(expectedMessage)) // Check if the message contains the expected text
285285
.count(); // Count how many times the expected message appears
286286

0 commit comments

Comments
 (0)