Updated setup() to setUp() because of codacy
This commit is contained in:
Родитель
b8706c9b0b
Коммит
54adb3d04c
|
@ -94,7 +94,7 @@ public class CosmosTemplateIT {
|
|||
private ResponseDiagnosticsTestUtils responseDiagnosticsTestUtils;
|
||||
|
||||
@Before
|
||||
public void setup() throws ClassNotFoundException {
|
||||
public void setUp() throws ClassNotFoundException {
|
||||
if (!initialized) {
|
||||
final CosmosDbFactory cosmosDbFactory = new CosmosDbFactory(dbConfig);
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ public class CosmosTemplatePartitionIT {
|
|||
private CosmosDBConfig dbConfig;
|
||||
|
||||
@Before
|
||||
public void setup() throws ClassNotFoundException {
|
||||
public void setUp() throws ClassNotFoundException {
|
||||
if (!initialized) {
|
||||
final CosmosDbFactory cosmosDbFactory = new CosmosDbFactory(dbConfig);
|
||||
final CosmosMappingContext mappingContext = new CosmosMappingContext();
|
||||
|
|
|
@ -38,7 +38,7 @@ public class MappingCosmosConverterUnitTest {
|
|||
ApplicationContext applicationContext;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
final CosmosMappingContext mappingContext = new CosmosMappingContext();
|
||||
final ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public class PerformanceCompare {
|
|||
private static PerformanceReport report = new PerformanceReport();
|
||||
|
||||
@Before
|
||||
public void setup() throws CosmosClientException {
|
||||
public void setUp() throws CosmosClientException {
|
||||
if (!hasInit) {
|
||||
DatabaseUtils.createDatabase(cosmosSyncClient, Constants.PERF_DATABASE_NAME);
|
||||
DatabaseUtils.createContainer(cosmosSyncClient, Constants.PERF_DATABASE_NAME,
|
||||
|
|
|
@ -63,7 +63,7 @@ public class AddressRepositoryIT {
|
|||
public ExpectedException expectedException = ExpectedException.none();
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -49,7 +49,7 @@ public class ContactRepositoryIT {
|
|||
private CosmosTemplate template;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -64,7 +64,7 @@ public class CustomerRepositoryIT {
|
|||
private CosmosTemplate template;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -56,7 +56,7 @@ public class IntegerIdDomainRepositoryIT {
|
|||
private IntegerIdDomainRepository repository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -75,7 +75,7 @@ public class MemoRepositoryIT {
|
|||
}
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class PageableAddressRepositoryIT {
|
|||
private CosmosDBConfig dbConfig;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -70,7 +70,7 @@ public class PageableMemoRepositoryIT {
|
|||
private static boolean isSetupDone;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (isSetupDone) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public class PageablePersonRepositoryIT {
|
|||
private static boolean isSetupDone;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (isSetupDone) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ public class ProjectRepositoryIT {
|
|||
private ProjectRepository repository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -7,11 +7,9 @@ package com.microsoft.azure.spring.data.cosmosdb.repository.integration;
|
|||
|
||||
import com.microsoft.azure.spring.data.cosmosdb.core.CosmosTemplate;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.core.query.CosmosPageRequest;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.domain.Project;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.domain.SortedProject;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.exception.CosmosDBAccessException;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.repository.TestRepositoryConfig;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.repository.repository.ProjectRepository;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.repository.repository.SortedProjectRepository;
|
||||
import com.microsoft.azure.spring.data.cosmosdb.repository.support.CosmosEntityInformation;
|
||||
import org.assertj.core.util.Lists;
|
||||
|
@ -97,7 +95,7 @@ public class ProjectRepositorySortIT {
|
|||
private SortedProjectRepository repository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -52,7 +52,7 @@ public class QuestionRepositoryIT {
|
|||
private ProjectRepository projectRepository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -68,7 +68,7 @@ public class ReactiveCourseRepositoryIT {
|
|||
private ReactiveCourseRepository repository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -55,7 +55,7 @@ public class SpELCosmosDBAnnotationIT {
|
|||
private static CosmosEntityInformation<SpELPropertyStudent, String> cosmosEntityInformation;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (staticTemplate == null) {
|
||||
staticTemplate = cosmosTemplate;
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ public class SquareRepositoryIT {
|
|||
private SquareRepository repository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
|
@ -66,7 +66,7 @@ public class StudentRepositoryIT {
|
|||
private StudentRepository repository;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
public void setUp() {
|
||||
if (!isSetupDone) {
|
||||
staticTemplate = template;
|
||||
template.createContainerIfNotExists(entityInformation);
|
||||
|
|
Загрузка…
Ссылка в новой задаче