Skip to content

Commit 5e51f49

Browse files
committed
Use helper to generate expected error message
1 parent 9038ed5 commit 5e51f49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/src/org/labkey/test/tests/targetedms/TargetedMSUtilizationCalendarTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.labkey.test.util.DataRegionTable;
1212
import org.openqa.selenium.NoSuchElementException;
1313

14+
import java.sql.Timestamp;
1415
import java.util.Arrays;
1516

1617
@Category({})
@@ -57,7 +58,7 @@ public void testUtilizationCalendarActions()
5758
log("Input data validation checks");
5859
utilizationCalendar.setDisplay("1")
5960
.markOfflineExpectingError("2013-08-2", null, null, "Error saving. Missing value for required property: Description")
60-
.markOfflineExpectingError("2013-08-2", "2013-0802", null, "Error saving. '2013-0802' is not a valid Timestamp for EndDate using U.S. date parsing (MDY)")
61+
.markOfflineExpectingError("2013-08-2", "2013-0802", null, "Error saving. " + getConversionErrorMessage("2013-0802", "EndDate", Timestamp.class))
6162
.markOfflineExpectingError("2013-08-2", "2013-08-01", null, "Error saving. End date cannot be before the start date");
6263

6364
log("Marking single day offline");

0 commit comments

Comments
 (0)