Skip to content

Commit

Permalink
Use message.property when testing state text
Browse files Browse the repository at this point in the history
[#184510105]
  • Loading branch information
bencalegari committed Apr 20, 2023
1 parent 7964632 commit 05c47b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/formflow/library/framework/InputsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import formflow.library.utilities.FormScreen;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -43,7 +44,7 @@ void shouldPersistInputValuesWhenNavigatingBetweenScreens() throws Exception {
String moneyInput = "100";
String phoneInput = "(555) 555-1234";
String ssnInput = "333-22-4444";
String stateInput = "NH";
String stateInput = messageSource.getMessage("state.nh", null, Locale.ENGLISH).substring(0, 2);

postExpectingNextPageTitle("inputs",
Map.ofEntries(
Expand Down

0 comments on commit 05c47b8

Please sign in to comment.