Reputation: 17
I've created application using JHipster, it has default test cases which compares with its default values declared in variable. Ex.
private static final String DEFAULT_NAME = "AAAAAAAAAA";
private static final String UPDATED_NAME = "BBBBBBBBBB";
Now, what I understand from console log is since application has data populated and when default test cases gets response, its actual application/custom data which does not matches with the expected data.
Ex.
without data population, DEFAULT_NAME(AAAAAAAAAA)
matches with UPDATED_NAME(BBBBBBBBBB)
but now since data is there, DEFAULT_NAME(AAAAAAAAAA)
not matches with UPDATED_NAME(INDIA)
.
Upvotes: 0
Views: 127
Reputation: 6362
If you customized the logic in your application (such as the entity service or resource files), you will need to update the tests to test that logic. For example, you force the name
to INDIA
in the code, then update the tests to check that instead of BBBBBBBBBB
Upvotes: 2