Skip to content

Commit

Permalink
Merge pull request eugenp#6114 from rozagerardo/geroza/BAEL-9518_Upgr…
Browse files Browse the repository at this point in the history
…ade-parent-spring-5-to-the-latest-version-2

[BAEL-9518] parent-spring-5 | Upgrade parent-spring-5 to the latest version of Spring 5 - part 2
  • Loading branch information
lor6 authored Jan 12, 2019
2 parents a00fa8f + a15045f commit b81af29
Show file tree
Hide file tree
Showing 47 changed files with 366 additions and 99 deletions.
1 change: 0 additions & 1 deletion ethereum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
- [Introduction to EthereumJ](http://www.baeldung.com/ethereumj)
- [Creating and Deploying Smart Contracts with Solidity](http://www.baeldung.com/smart-contracts-ethereum-solidity)
- [Lightweight Ethereum Clients Using Web3j](http://www.baeldung.com/web3j)

15 changes: 7 additions & 8 deletions ethereum/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<name>ethereum</name>

<parent>
<artifactId>parent-spring-5-1</artifactId>
<artifactId>parent-spring-5</artifactId>
<groupId>com.baeldung</groupId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-spring-5-1</relativePath>
<relativePath>../parent-spring-5</relativePath>
</parent>

<dependencies>
Expand All @@ -37,17 +37,17 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springframework.version}</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${springframework.version}</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${springframework.version}</version>
<version>${spring.version}</version>
</dependency>

<!-- Ethereum -->
Expand Down Expand Up @@ -123,12 +123,12 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${springframework.version}</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${springframework.version}</version>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -212,7 +212,6 @@
<tomcat.version>8.5.4</tomcat.version>
<ethereumj-core.version>1.5.0-RELEASE</ethereumj-core.version>
<web3j.core.version>3.3.1</web3j.core.version>
<springframework.version>5.0.5.RELEASE</springframework.version>
<spring.boot.version>1.5.6.RELEASE</spring.boot.version>
<mockito.version>2.21.0</mockito.version>
<jackson-databind.version>2.9.7</jackson-databind.version>
Expand Down
1 change: 0 additions & 1 deletion parent-spring-5-1/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions parent-spring-5-1/pom.xml

This file was deleted.

4 changes: 2 additions & 2 deletions persistence-modules/spring-data-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-spring-5-1</artifactId>
<artifactId>parent-spring-5</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-spring-5-1</relativePath>
<relativePath>../../parent-spring-5</relativePath>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@

import com.alibaba.fastjson.JSON;

/**
*
* This Manual test requires:
* * Elasticsearch instance running on host
* * with cluster name = elasticsearch
*
*/
public class ElasticSearchManualTest {
private List<Person> listOfPersons = new ArrayList<>();
private Client client = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@
import com.baeldung.spring.data.es.config.Config;
import com.vividsolutions.jts.geom.Coordinate;

/**
*
* This Manual test requires:
* * Elasticsearch instance running on host
* * with cluster name = elasticsearch
* * and further configurations
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = Config.class)
public class GeoQueriesIntegrationTest {
public class GeoQueriesManualTest {

private static final String WONDERS_OF_WORLD = "wonders-of-world";
private static final String WONDERS = "Wonders";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@
import com.baeldung.spring.data.es.model.Author;
import com.baeldung.spring.data.es.service.ArticleService;

/**
*
* This Manual test requires:
* * Elasticsearch instance running on host
* * with cluster name = elasticsearch
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = Config.class)
public class ElasticSearchIntegrationTest {
public class ElasticSearchManualTest {

@Autowired
private ElasticsearchTemplate elasticsearchTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,16 @@
import com.baeldung.spring.data.es.model.Author;
import com.baeldung.spring.data.es.service.ArticleService;

/**
*
* This Manual test requires:
* * Elasticsearch instance running on host
* * with cluster name = elasticsearch
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = Config.class)
public class ElasticSearchQueryIntegrationTest {
public class ElasticSearchQueryManualTest {

@Autowired
private ElasticsearchTemplate elasticsearchTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@

import com.baeldung.spring.data.es.config.Config;

/**
*
* This Manual test requires:
* * Elasticsearch instance running on host
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = Config.class)
public class SpringContextIntegrationTest {
public class SpringContextManualTest {

@Test
public void whenSpringContextIsBootstrapped_thenNoExceptions() {
Expand Down
5 changes: 2 additions & 3 deletions persistence-modules/spring-data-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-spring-5-1</artifactId>
<artifactId>parent-spring-5</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-spring-5-1</relativePath>
<relativePath>../../parent-spring-5</relativePath>
</parent>

<dependencies>
Expand Down Expand Up @@ -96,7 +96,6 @@
</build>

<properties>
<spring.version>5.1.0.RELEASE</spring.version>
<org.springframework.data.version>2.1.2.RELEASE</org.springframework.data.version>
<querydsl.version>4.1.4</querydsl.version>
<mysema.maven.version>1.1.3</mysema.maven.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class ZipsAggregationLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
import com.mongodb.DBObject;
import com.mongodb.client.gridfs.model.GridFSFile;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@ContextConfiguration("file:src/main/resources/mongoConfig.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class GridFSLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
import com.baeldung.model.EmailAddress;
import com.baeldung.model.User;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class DocumentQueryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SimpleMongoConfig.class)
public class MongoTemplateProjectionLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
import com.baeldung.model.EmailAddress;
import com.baeldung.model.User;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class MongoTemplateQueryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
import java.time.ZoneOffset;
import java.time.ZonedDateTime;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class ActionRepositoryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
public class BaseQueryLiveTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@

import com.querydsl.core.types.Predicate;



/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class DSLQueryLiveTest extends BaseQueryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class JSONQueryLiveTest extends BaseQueryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class QueryMethodsLiveTest extends BaseQueryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
import com.baeldung.config.MongoConfig;
import com.baeldung.model.User;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class UserRepositoryLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class)
public class UserRepositoryProjectionLiveTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
import com.baeldung.config.MongoReactiveConfig;
import com.baeldung.model.User;

/**
*
* This test requires:
* * mongodb instance running on the environment
*
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoReactiveConfig.class)
public class MongoTransactionReactiveLiveTest {
Expand Down
Loading

0 comments on commit b81af29

Please sign in to comment.