Skip to content

separate test datasource#1575

Merged
KevinGilmore merged 4 commits intoeugenp:masterfrom
lor6:BAEL-735
Apr 7, 2017
Merged

separate test datasource#1575
KevinGilmore merged 4 commits intoeugenp:masterfrom
lor6:BAEL-735

Conversation

@lor6
Copy link
Copy Markdown
Collaborator

@lor6 lor6 commented Apr 2, 2017

No description provided.

Copy link
Copy Markdown
Contributor

@KevinGilmore KevinGilmore left a 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"));
Copy link
Copy Markdown
Contributor

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());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, "foundEntity"

Copy link
Copy Markdown
Contributor

@KevinGilmore KevinGilmore left a 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;
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants