You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I think the usage should be the same as in the case of junit4, so it should look something like this:
@RegisterExtension
public SingleInstancePostgresExtension pg = EmbeddedPostgresExtension.singleInstance();
Or this:
@RegisterExtension
public PreparedDbExtension pg = EmbeddedPostgresExtension.preparedDatabase(FlywayPreparer.forClasspathLocation("db/my-db-schema"));
The first extension uses postgres database, the second extension creates independent databases with randomly generated names. In both cases, the database name cannot be changed by the user.
Hi There,
Do you have any example how to use
embedded-postgres
with Junit5 and use custom database instead of defaultpostgres
database?Regards,
Syed Ali
The text was updated successfully, but these errors were encountered: