DATAREST-93 - Enable web integration tests for Gemfire.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import org.springframework.data.annotation.Id;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -26,7 +26,6 @@ import org.springframework.data.repository.query.Param;
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
*/
|
||||
|
||||
public interface CustomerRepository extends CrudRepository<Customer, Long> {
|
||||
|
||||
/**
|
||||
@@ -44,5 +43,4 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
|
||||
* @return
|
||||
*/
|
||||
Customer findByEmailAddress(@Param("email") EmailAddress emailAddress);
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.springframework.data.rest.webmvc.AbstractWebIntegrationTests;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@ContextConfiguration(classes = GemfireRepositoryConfig.class)
|
||||
public class GemfireWebTests extends AbstractWebIntegrationTests {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#expectedRootLinkRels()
|
||||
*/
|
||||
@Override
|
||||
protected Iterable<String> expectedRootLinkRels() {
|
||||
return Arrays.asList("products");
|
||||
}
|
||||
}
|
||||
@@ -13,11 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.order;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.springframework.data.rest.webmvc.gemfire.core.Product;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.order;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collections;
|
||||
@@ -21,8 +21,6 @@ import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.data.gemfire.mapping.Region;
|
||||
import org.springframework.data.rest.webmvc.gemfire.core.AbstractPersistentEntity;
|
||||
import org.springframework.data.rest.webmvc.gemfire.core.Address;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -38,7 +36,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.webmvc.gemfire.core.Customer}.
|
||||
* Creates a new {@link Order} for the given {@link org.springframework.data.rest.webmvc.gemfire.Customer}.
|
||||
*
|
||||
* @param id order ID
|
||||
* @param customerId must not be {@literal null}.
|
||||
@@ -65,7 +63,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the id of the {@link org.springframework.data.rest.webmvc.gemfire.core.Customer} who placed the
|
||||
* Returns the id of the {@link org.springframework.data.rest.webmvc.gemfire.Customer} who placed the
|
||||
* {@link Order}.
|
||||
*
|
||||
* @return
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.order;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -24,5 +24,6 @@ import org.springframework.data.repository.CrudRepository;
|
||||
* @author David Turanski
|
||||
*/
|
||||
public interface OrderRepository extends CrudRepository<Order, Long> {
|
||||
|
||||
List<Order> findByCustomerId(Long customerId);
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collections;
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.rest.webmvc.gemfire.core;
|
||||
package org.springframework.data.rest.webmvc.gemfire;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.data.repository.CrudRepository;
|
||||
* Repository interface to access {@link Product}s.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David TuranskiGem
|
||||
* @author David Turanski
|
||||
*/
|
||||
public interface ProductRepository extends CrudRepository<Product, Long> {
|
||||
|
||||
@@ -34,7 +34,6 @@ public interface ProductRepository extends CrudRepository<Product, Long> {
|
||||
* @param the search string
|
||||
* @return
|
||||
*/
|
||||
|
||||
List<Product> findByDescriptionContaining(String description);
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user