Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ Contributions are welcome! If you'd like to add support for additional databases

1. Fork the repository
2. Create a feature branch
3. Install the Git hooks to ensure code formatting (see below)
4. Add your changes
5. Submit a pull request
3. Add your changes
4. Submit a pull request

## License

Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions examples/spring-postgresql/src/test/resources/logback.xml

This file was deleted.

This file was deleted.

28 changes: 28 additions & 0 deletions examples/springboot-mysql/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Database configuration
spring:
datasource:
url: jdbc:mysql://localhost:3306/testdb
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver

# JPA/Hibernate properties
jpa:
hibernate:
ddl-auto: create
show-sql: true
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect

# Logging
logging:
level:
org:
hibernate:
SQL: DEBUG
type:
descriptor:
sql:
BasicBinder: TRACE
20 changes: 0 additions & 20 deletions examples/springboot-mysql/src/test/resources/logback.xml

This file was deleted.

24 changes: 0 additions & 24 deletions examples/springboot-ollama/src/test/resources/logback.xml

This file was deleted.

This file was deleted.

27 changes: 27 additions & 0 deletions examples/springboot-postgresql/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Database configuration
spring:
datasource:
url: jdbc:postgresql://localhost:5432/testdb
username: postgres
password: postgres
driver-class-name: org.postgresql.Driver
# JPA/Hibernate properties
jpa:
hibernate:
ddl-auto: create
show-sql: true
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.PostgreSQLDialect

# Logging
logging:
level:
org:
hibernate:
SQL: DEBUG
type:
descriptor:
sql:
BasicBinder: TRACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
public abstract class ContainerLifecycleExtension<A extends Annotation>
implements BeforeAllCallback, AfterAllCallback {

/** Logger for this class. */
private static final Logger log = LoggerFactory.getLogger(ContainerLifecycleExtension.class);

/** The container provider that manages the actual container instance. */
private SpringAwareContainerProvider<? extends Annotation, ? extends GenericContainer<?>>
provider;

Expand Down Expand Up @@ -56,7 +54,7 @@ public void beforeAll(ExtensionContext context) {
this.provider = ContainerRegistry.get(testClass);
} else {
this.provider = initProvider(enableContainerAnnotation);
log.debug("Starting JDBC container {} for test class: {}", provider, testClass.getName());
log.debug("Starting container {} for test class: {}", provider, testClass.getName());
provider.start();
ContainerRegistry.set(testClass, provider);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* well as applying container configuration to Spring environment.
*
* <p>Implementations of this class should provide specific container creation logic and environment
* configuration for different container types (e.g., PostgreSQL, MySQL, Ollama).
* configuration for different container types (e.g., PostgreSQL, MySQL, Ollama, etc).
*
* @param <SELF> The specific type of GenericContainer being managed
*/
Expand Down
Loading