Use non-spring package names for samples

This commit is contained in:
Dave Syer
2016-07-12 11:18:25 +01:00
parent dd1410b5f9
commit 1bed00ccf9
35 changed files with 67 additions and 56 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.contract.verifier.samples.messaging;
package com.example;
import java.io.Serializable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.contract.verifier.samples.messaging;
package com.example;
import java.util.concurrent.atomic.AtomicBoolean;
@@ -50,5 +50,5 @@ public class BookListener {
bookSuccessfulyDeleted.set(true);
}
private AtomicBoolean bookSuccessfulyDeleted = new AtomicBoolean(false);
public AtomicBoolean bookSuccessfulyDeleted = new AtomicBoolean(false);
}

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.contract.verifier.samples.messaging;
package com.example;
import java.io.Serializable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.contract.verifier.samples.messaging;
package com.example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.contract.verifier.samples.messaging;
package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -32,17 +32,17 @@
ref="bookListener"
method="returnBook"/>
<json-to-object-transformer input-channel="input" type="org.springframework.cloud.contract.verifier.samples.messaging.BookReturned"
<json-to-object-transformer input-channel="input" type="com.example.BookReturned"
output-channel="inputChannel"/>
<service-activator input-channel="deleteChannel"
ref="bookListener"
method="bookDeleted"/>
<json-to-object-transformer input-channel="delete" type="org.springframework.cloud.contract.verifier.samples.messaging.BookDeleted"
<json-to-object-transformer input-channel="delete" type="com.example.BookDeleted"
output-channel="deleteChannel"/>
<beans:bean id="bookListener" class="org.springframework.cloud.contract.verifier.samples.messaging.BookListener"/>
<beans:bean id="bookListener" class="com.example.BookListener"/>
<!-- REQUIRED FOR TESTING -->

View File

@@ -14,22 +14,24 @@
* limitations under the License.
*/
package org.springframework.cloud.contract.verifier.samples.messaging
package com.example
import javax.inject.Inject
import com.jayway.jsonpath.DocumentContext
import com.jayway.jsonpath.JsonPath
import com.toomuchcoding.jsonassert.JsonAssertion
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.SpringApplicationContextLoader
import org.springframework.cloud.contract.spec.Contract
import org.springframework.cloud.contract.verifier.messaging.ContractVerifierMessage
import org.springframework.cloud.contract.verifier.messaging.ContractVerifierMessaging
import org.springframework.cloud.contract.verifier.messaging.ContractVerifierObjectMapper
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.annotation.DirtiesContext
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
import javax.inject.Inject
import com.jayway.jsonpath.DocumentContext
import com.jayway.jsonpath.JsonPath
import com.toomuchcoding.jsonassert.JsonAssertion
// Context configuration would end up in base class
@ContextConfiguration(classes = [IntegrationMessagingApplication], loader = SpringApplicationContextLoader)
@DirtiesContext