From 3aed88d8cf8ab9b53026fa8b784e02ded673262b Mon Sep 17 00:00:00 2001 From: Katherine Yen Date: Thu, 13 Aug 2026 11:00:16 -0400 Subject: [PATCH] Parameterize on file name instead of numberless --- .../textsecuregcm/storage/AccountsManagerTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/storage/AccountsManagerTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/storage/AccountsManagerTest.java index a3378c33a..60240ec24 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/storage/AccountsManagerTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/storage/AccountsManagerTest.java @@ -1453,11 +1453,12 @@ class AccountsManagerTest { } @ParameterizedTest - @ValueSource(booleans = {true, false}) - void testJsonRoundTripSerialization(final boolean numberless) throws Exception { + @ValueSource(strings = { + "AccountsManagerTest-testJsonRoundTripSerialization.json", + "AccountsManagerTest-testJsonRoundTripSerializationNumberless.json"}) + void testJsonRoundTripSerialization(final String fileName) throws Exception { String originalJson; - final String jsonFileName = String.format("AccountsManagerTest-testJsonRoundTripSerialization%s.json", numberless ? "Numberless" : ""); - try (InputStream inputStream = getClass().getResourceAsStream(jsonFileName)) { + try (InputStream inputStream = getClass().getResourceAsStream(fileName)) { Objects.requireNonNull(inputStream); originalJson = new String(inputStream.readAllBytes(), StandardCharsets.UTF_8); }