This commit is contained in:
Marcos Lopez Gonzalez 2018-11-09 20:55:36 +01:00
parent 61ffac2c77
commit 1d26380c07
1 changed files with 1 additions and 3 deletions

View File

@ -50,9 +50,7 @@ public class SpringCastTest {
@Test
public void givenExecutorGeneric_whenQueryReturnsOneColumn_thenNoClassCastThrown() {
List<DummyEntity> results = QueryExecutor.executeNativeQueryGeneric("select text from dummy", "textQueryMapping", em);
assertEquals("text", results
.get(0)
.getText());
assertEquals("text", results.get(0).getText());
}
}