-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#876 - Upgrade to Java 21 and SB 3.2.0-RC2
- Loading branch information
1 parent
85f3e7a
commit 2d63f4c
Showing
5 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,11 +25,11 @@ jobs: | |
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Set up JDK 17 | ||
- name: Set up JDK 21 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: "zulu" | ||
java-version: 21 | ||
distribution: "microsoft" | ||
cache: "maven" | ||
|
||
- name: Build and analyze | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
boot-api-archunit-sample/src/test/java/com/example/archunit/ApplicationIntegrationTest.java
This file was deleted.
Oops, something went wrong.
22 changes: 15 additions & 7 deletions
22
boot-api-archunit-sample/src/test/java/com/example/archunit/SchemaValidationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
package com.example.archunit; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import com.example.archunit.common.ContainersConfig; | ||
import com.zaxxer.hikari.HikariDataSource; | ||
import javax.sql.DataSource; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; | ||
import org.springframework.context.annotation.Import; | ||
|
||
@DataJpaTest( | ||
properties = { | ||
"spring.jpa.hibernate.ddl-auto=validate", | ||
"spring.test.database.replace=none", | ||
"spring.datasource.url=jdbc:tc:postgresql:16.0-alpine:///db" | ||
}) | ||
@DataJpaTest(properties = {"spring.jpa.hibernate.ddl-auto=validate", "spring.test.database.replace=none"}) | ||
@Import(ContainersConfig.class) | ||
class SchemaValidationTest { | ||
|
||
@Autowired | ||
private DataSource dataSource; | ||
|
||
@Test | ||
void validateJpaMappingsWithDbSchema() {} | ||
void validateJpaMappingsWithDbSchema() { | ||
assertThat(dataSource).isInstanceOf(HikariDataSource.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters