Skip to content

Commit

Permalink
Improve test date validation by providing explicit date rather than r…
Browse files Browse the repository at this point in the history
…ely on database to create it.
  • Loading branch information
msqr committed Jun 24, 2024
1 parent 7562643 commit fa39253
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* Test cases for the {@link MyBatisUserAlertDao} class.
*
* @author matt
* @version 2.0
* @version 2.1
*/
public class MyBatisUserAlertDaoTests extends AbstractMyBatisUserDaoTestSupport {

Expand Down Expand Up @@ -88,6 +88,7 @@ public void storeNew() {
alert.setNodeId(TEST_NODE_ID);
alert.setType(UserAlertType.NodeStaleData);
alert.setStatus(UserAlertStatus.Active);
alert.setValidTo(alert.getCreated());

Map<String, Object> options = new HashMap<String, Object>(4);
options.put("string", "foo");
Expand Down

0 comments on commit fa39253

Please sign in to comment.