-
Notifications
You must be signed in to change notification settings - Fork 54.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
separate test datasource #1575
separate test datasource #1575
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename "foundedEntity" variable in tests.
|
||
@Test | ||
public void givenGenericEntityRepository_whenSaveAndRetreiveEntity_thenOK() { | ||
GenericEntity genericEntity = genericEntityRepository.save(new GenericEntity("test")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the variable name to "foundEntity"
@Test | ||
public void givenGenericEntityRepository_whenSaveAndRetreiveEntity_thenOK() { | ||
GenericEntity genericEntity = genericEntityRepository.save(new GenericEntity("test")); | ||
GenericEntity foundedEntity = genericEntityRepository.findOne(genericEntity.getId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, "foundEntity"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move H2TestProfileJPAConfig class to the src/test/java folder structure
@@ -0,0 +1,66 @@ | |||
package org.baeldung.config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be moved to src/test/java
No description provided.