Fixes the build.
Use JUnit 4 instead of 5 for 1.1.x Remove jetbrains @NotNull annotation. Closes #921
This commit is contained in:
@@ -17,7 +17,6 @@ package org.springframework.data.jdbc.core;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Test;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.jdbc.core.mapping.JdbcMappingContext;
|
||||
@@ -200,12 +199,10 @@ public class PersistentPropertyPathExtensionUnitTests {
|
||||
});
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private PersistentPropertyPathExtension extPath(RelationalPersistentEntity<?> entity) {
|
||||
return new PersistentPropertyPathExtension(context, entity);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private PersistentPropertyPathExtension extPath(String path) {
|
||||
return new PersistentPropertyPathExtension(context, createSimplePath(path));
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ package org.springframework.data.jdbc.core.mapping;
|
||||
|
||||
import lombok.experimental.UtilityClass;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.data.mapping.PersistentPropertyPath;
|
||||
import org.springframework.data.relational.core.mapping.RelationalMappingContext;
|
||||
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;
|
||||
@@ -28,7 +27,6 @@ import org.springframework.data.relational.core.mapping.RelationalPersistentProp
|
||||
@UtilityClass
|
||||
public class PersistentPropertyPathTestUtils {
|
||||
|
||||
@NotNull
|
||||
public static PersistentPropertyPath<RelationalPersistentProperty> getPath(RelationalMappingContext context,
|
||||
String path, Class<?> baseType) {
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import org.assertj.core.api.SoftAssertions;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Test;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
@@ -271,7 +270,7 @@ public class EnableJdbcAuditingHsqlIntegrationTests {
|
||||
|
||||
return new NamingStrategy() {
|
||||
|
||||
public String getTableName(@NotNull Class<?> type) {
|
||||
public String getTableName(Class<?> type) {
|
||||
return "DummyEntity";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user