Integration Tests for Oracle

23 views
Skip to first unread message

ELIELDO MARTINS

unread,
Apr 19, 2023, 9:18:47 AM4/19/23
to h2-da...@googlegroups.com

Hello !
I'm writing integration tests for an Oracle project. 

Doubt: I have the normal application.properties configuration working ok. And in tests/resources/application.properties I have the H2 configuration. 

But, the integration tests pass normally even without me creating/persisting the test data!? I understand that findaAll() and findById() shouldn't work... 

Can anyone explain why this is working?

ELIELDO MARTINS

unread,
Apr 19, 2023, 1:03:00 PM4/19/23
to H2 Database
I did some research and found that Hibernate can generate the tables through the "spring.jpa.hibernate.ddl-auto" property.

I enabled the "spring.jpa.show-sql" property and verified that it performs "inserts" as well.
Reply all
Reply to author
Forward
0 new messages