Fix MaskSensitiveInformationTest failure
This commit is contained in:
parent
a7d76b2370
commit
23a011385d
|
@ -12,7 +12,6 @@ import org.hibernate.cfg.AvailableSettings;
|
|||
|
||||
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
|
||||
import org.hibernate.testing.orm.junit.Jpa;
|
||||
import org.hibernate.testing.orm.junit.Setting;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
@ -22,12 +21,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
*
|
||||
* @author Bruno P. Kinoshita
|
||||
*/
|
||||
@Jpa(
|
||||
integrationSettings = {
|
||||
@Setting( name = AvailableSettings.USER, value = "user" ),
|
||||
@Setting( name = AvailableSettings.PASS, value = "pass" )
|
||||
}
|
||||
)
|
||||
@Jpa
|
||||
public class MaskSensitiveInformationTest {
|
||||
private static final String EXPECTED_MASKED_VALUE = "****";
|
||||
|
||||
|
|
|
@ -159,6 +159,12 @@ public class EntityManagerFactoryExtension
|
|||
}
|
||||
|
||||
final Map<String, Object> integrationSettings = new HashMap<>();
|
||||
|
||||
( (Map<Object, Object>) Environment.getProperties() ).forEach(
|
||||
(key, value) ->
|
||||
integrationSettings.put( (String) key, value )
|
||||
);
|
||||
|
||||
integrationSettings.put( GlobalTemporaryTableMutationStrategy.DROP_ID_TABLES, "true" );
|
||||
integrationSettings.put( LocalTemporaryTableMutationStrategy.DROP_ID_TABLES, "true" );
|
||||
if ( !integrationSettings.containsKey( Environment.CONNECTION_PROVIDER ) ) {
|
||||
|
|
Loading…
Reference in New Issue