Browse Source

DATAJDBC-102 - Polishing.

Execute Hsql specific integration test only with Hsql.

Original pull request: #68.
pull/76/head
Jens Schauder 8 years ago committed by Mark Paluch
parent
commit
b91da91a83
  1. 3
      src/test/java/org/springframework/data/jdbc/repository/config/EnableJdbcAuditingHsqlIntegrationTests.java

3
src/test/java/org/springframework/data/jdbc/repository/config/EnableJdbcAuditingHsqlIntegrationTests.java

@ -32,6 +32,7 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
@ -41,6 +42,7 @@ import org.springframework.data.auditing.DateTimeProvider;
import org.springframework.data.domain.AuditorAware; import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jdbc.core.mapping.NamingStrategy; import org.springframework.data.jdbc.core.mapping.NamingStrategy;
import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.CrudRepository;
import org.springframework.test.context.ActiveProfiles;
/** /**
* Tests the {@link EnableJdbcAuditing} annotation. * Tests the {@link EnableJdbcAuditing} annotation.
@ -48,6 +50,7 @@ import org.springframework.data.repository.CrudRepository;
* @author Kazuki Shimizu * @author Kazuki Shimizu
* @author Jens Schauder * @author Jens Schauder
*/ */
@ActiveProfiles("hsql")
public class EnableJdbcAuditingHsqlIntegrationTests { public class EnableJdbcAuditingHsqlIntegrationTests {
SoftAssertions softly = new SoftAssertions(); SoftAssertions softly = new SoftAssertions();

Loading…
Cancel
Save