You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Test
@ShouldMatchDataSet("expected-users-regex.yml")
public void should_verify_database_content_using_regex_in_expected_dataset() {
UserAccount ua = new UserAccount();
ua.setFirstName("John");
ua.setUserName("doovde");
ua.setOpenDate(newDate());
entityManager.persist(ua);
}
The main motivation is to deal with dynamic data in datasets. Here in the example is the Id which is generated by JPA and openDate.
Although it helps in some cases in most of the cases we have 'controlled' static data in datasets so I think if we add this feature it should come disabled.
What do you think?
The text was updated successfully, but these errors were encountered:
example:
expected-users-regex.yml
the test:
The main motivation is to deal with dynamic data in datasets. Here in the example is the Id which is generated by JPA and openDate.
Although it helps in some cases in most of the cases we have 'controlled' static data in datasets so I think if we add this feature it should come disabled.
What do you think?
The text was updated successfully, but these errors were encountered: