Skip to content

Commit

Permalink
HSEARCH-4674 Make documentation tests aware of testcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Nov 8, 2023
1 parent d0277b6 commit 61c83c2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.hibernate.search.util.impl.integrationtest.common.extension.BackendSetupStrategy;
import org.hibernate.search.util.impl.integrationtest.common.extension.MappingSetupHelper;
import org.hibernate.search.util.impl.integrationtest.common.stub.backend.BackendMappingHandle;
import org.hibernate.search.util.impl.integrationtest.mapper.orm.DatabaseContainer;
import org.hibernate.search.util.impl.integrationtest.mapper.orm.HibernateOrmMappingHandle;
import org.hibernate.search.util.impl.integrationtest.mapper.orm.OrmAssertionHelper;
import org.hibernate.search.util.impl.integrationtest.mapper.orm.SimpleSessionFactoryBuilder;
Expand Down Expand Up @@ -183,6 +184,10 @@ public final class SetupContext
// Ensure we don't build Jandex indexes needlessly:
// discovery based on Jandex ought to be tested in real projects that don't use this setup helper.
withProperty( HibernateOrmMapperSettings.MAPPING_BUILD_MISSING_DISCOVERED_JANDEX_INDEXES, false );

// DB properties:
DatabaseContainer.configuration().add( overriddenProperties );

// Ensure overridden properties will be applied
withConfiguration( builder -> overriddenProperties.forEach( builder::setProperty ) );
}
Expand Down

0 comments on commit 61c83c2

Please sign in to comment.