Skip to content

Commit

Permalink
DATAREST-1475 - Migrate GemFire tests to Geode.
Browse files Browse the repository at this point in the history
The GemFire module is now a submodule of Spring Data for Apache Geode so we're now testing against the Geode toplevel module.
  • Loading branch information
mp911de committed Jan 16, 2020
1 parent 086f6c2 commit 52104eb
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<springdata.commons>2.3.0.BUILD-SNAPSHOT</springdata.commons>
<springdata.jpa>2.3.0.BUILD-SNAPSHOT</springdata.jpa>
<springdata.mongodb>3.0.0.BUILD-SNAPSHOT</springdata.mongodb>
<springdata.gemfire>2.3.0.BUILD-SNAPSHOT</springdata.gemfire>
<springdata.geode>2.3.0.BUILD-SNAPSHOT</springdata.geode>
<springdata.solr>4.2.0.BUILD-SNAPSHOT</springdata.solr>
<springdata.cassandra>3.0.0.BUILD-SNAPSHOT</springdata.cassandra>
<springdata.keyvalue>2.3.0.BUILD-SNAPSHOT</springdata.keyvalue>
Expand Down
2 changes: 1 addition & 1 deletion spring-data-rest-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<modules>
<module>spring-data-rest-tests-core</module>
<module>spring-data-rest-tests-gemfire</module>
<module>spring-data-rest-tests-geode</module>
<module>spring-data-rest-tests-jpa</module>
<module>spring-data-rest-tests-mongodb</module>
<module>spring-data-rest-tests-security</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-gemfire</artifactId>
<version>${springdata.gemfire}</version>
<artifactId>spring-data-geode</artifactId>
<version>${springdata.geode}</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import org.springframework.data.annotation.Id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import org.springframework.util.Assert;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.util.Collections;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.util.regex.Pattern;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.math.BigDecimal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.math.BigDecimal;
import java.util.Collections;
Expand All @@ -37,7 +37,7 @@ public class Order extends AbstractPersistentEntity {
private Set<LineItem> lineItems = new HashSet<LineItem>();

/**
* Creates a new {@link Order} for the given {@link org.springframework.data.rest.tests.gemfire.Customer}.
* Creates a new {@link Order} for the given {@link org.springframework.data.rest.tests.geode.Customer}.
*
* @param id order ID
* @param customerId must not be {@literal null}.
Expand All @@ -64,7 +64,7 @@ public void add(LineItem lineItem) {
}

/**
* Returns the id of the {@link org.springframework.data.rest.tests.gemfire.Customer} who placed the
* Returns the id of the {@link org.springframework.data.rest.tests.geode.Customer} who placed the
* {@link Order}.
*
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.math.BigDecimal;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -32,7 +32,7 @@
@Configuration
@ImportResource("classpath:META-INF/spring/cache-config.xml")
@EnableGemfireRepositories
public class GemfireRepositoryConfig {
public class GeodeRepositoryConfig {

/**
* TODO: Remove, once Spring Data Gemfire exposes a mapping context.
Expand All @@ -43,7 +43,7 @@ public GemfireMappingContext gemfireMappingContext() {
AnnotatedTypeScanner scanner = new AnnotatedTypeScanner(Region.class);

GemfireMappingContext context = new GemfireMappingContext();
context.setInitialEntitySet(scanner.findTypes(GemfireRepositoryConfig.class.getPackage().getName()));
context.setInitialEntitySet(scanner.findTypes(GeodeRepositoryConfig.class.getPackage().getName()));
context.initialize();

return context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.rest.tests.gemfire;
package org.springframework.data.rest.tests.geode;

import org.springframework.data.rest.tests.CommonWebTests;
import org.springframework.hateoas.LinkRelation;
Expand All @@ -22,8 +22,8 @@
/**
* @author Oliver Gierke
*/
@ContextConfiguration(classes = GemfireRepositoryConfig.class)
public class GemfireWebTests extends CommonWebTests {
@ContextConfiguration(classes = GeodeRepositoryConfig.class)
public class GeodeWebTests extends CommonWebTests {

/*
* (non-Javadoc)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gfe="http://www.springframework.org/schema/gemfire"
xsi:schemaLocation="http://www.springframework.org/schema/gemfire https://www.springframework.org/schema/gemfire/spring-gemfire.xsd
xmlns:geode="http://www.springframework.org/schema/geode"
xsi:schemaLocation="http://www.springframework.org/schema/geode https://www.springframework.org/schema/geode/spring-geode.xsd
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

<gfe:cache use-bean-factory-locator="false"/>
<geode:cache use-bean-factory-locator="false"/>

<gfe:replicated-region id="Customer"/>
<gfe:replicated-region id="Order"/>
<gfe:replicated-region id="Product"/>
<geode:replicated-region id="Customer"/>
<geode:replicated-region id="Order"/>
<geode:replicated-region id="Product"/>

</beans>

0 comments on commit 52104eb

Please sign in to comment.