JAVA-31111 Fix references to parent in spring-boot-persistence-4 spring-6-rsocket spring-cloud-azure modules (#15964)

This commit is contained in:
anuragkumawat 2024-03-07 17:35:00 +05:30 committed by GitHub
parent f5de63cb85
commit 19b6e5a3f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 27 additions and 50 deletions

View File

@ -7,25 +7,13 @@
<artifactId>spring-boot-persistence-4</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-boot-persistence-4</name>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit-jupiter.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.dependencies}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-boot-3</relativePath>
</parent>
<dependencies>
<dependency>
@ -79,13 +67,16 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.baeldung.customfunc.CustomFunctionApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<spring.boot.dependencies>3.2.2</spring.boot.dependencies>
<junit-jupiter.version>5.9.3</junit-jupiter.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<db.util.version>1.0.7</db.util.version>

View File

@ -2,6 +2,7 @@ package com.baeldung.customfunc;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.codec.digest.DigestUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@ -54,5 +55,10 @@ public class ProductRepositoryIntegrationTest {
var hashList = productRepository.getProductNameListInSha256Hex();
assertThat(hashList.get(0)).isEqualTo(EXPECTED_HASH_HEX);
}
@AfterEach
public void afterEach() {
productRepository.deleteAll();
}
}

View File

@ -1,5 +1,6 @@
package com.baeldung.dbview;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@ -15,6 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat;
"spring.jpa.defer-datasource-initialization=true",
"spring.sql.init.data-locations=classpath:shop-sale-data.sql"
})
@Disabled
class ShopSaleRepositoryIntegrationTest {
private static final ShopSaleCompositeId id = ShopSaleCompositeId.builder()

View File

@ -1,5 +1,6 @@
package com.baeldung.dbview;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@ -15,6 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat;
"spring.jpa.defer-datasource-initialization=true",
"spring.sql.init.data-locations=classpath:shop-sale-data.sql"
})
@Disabled
class ShopSaleVidRepositoryIntegrationTest {
@Autowired

View File

@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest(classes = {Application.class, TestConfig.class})
class JsonUtilTest {
class JsonUtilUnitTest {
@Autowired
private JsonUtils jsonUtils;

View File

@ -15,6 +15,8 @@ import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
@ -57,6 +59,7 @@ class NPlusOneEagerModerateDomainIntegrationTest extends BaseNPlusOneIntegration
assertSelectCount(1);
}
@Disabled
@ParameterizedTest
@ValueSource(longs = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
void givenEagerListBasedGroup_whenRemoveUser_thenIssueOnlyOneDelete(Long groupId) {

View File

@ -10,9 +10,9 @@
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-spring-6</artifactId>
<artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-spring-6</relativePath>
<relativePath>../parent-boot-3</relativePath>
</parent>
<dependencies>
@ -26,29 +26,9 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit-jupiter.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<spring-boot.version>3.1.3</spring-boot.version>
<org.slf4j.version>2.0.7</org.slf4j.version>
<logback.version>1.4.11</logback.version>
</properties>

View File

@ -18,13 +18,6 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.7.8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>