Removed ContractVerifierFilter fixes #42

This commit is contained in:
Marcin Grzejszczak
2016-07-19 09:47:20 +02:00
parent dcf09ef447
commit 5b163363a9
2 changed files with 3 additions and 35 deletions

View File

@@ -27,10 +27,8 @@ If you're using Spring Boot, the test configurations will be added automatically
==== Manual Integration Testing
The `spring-cloud-contract-verifier-messaging-core` module contains 2 main interfaces:
- `ContractVerifierMessageExchange` - class that allows you to build, send and receive messages
- `ContractVerifierFilter` - interface to filter out the messages that do not follow the pattern from the DSL
The `spring-cloud-contract-verifier-messaging-core` module contains `ContractVerifierMessageExchange`,
class that allows you to build, send and receive messages
In the a test you can inject a `ContractVerifierMessageExchange` to send and receive messages that follow the contract.
@@ -146,7 +144,7 @@ include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract
Unlike the HTTP part - in Messaging we need to publish the Groovy DSL inside the JAR with a stub. Then it's parsed on the consumer side
and proper stubbed routes are created.
For more infromation please consult the Stub Runner Messaging sections.
For more information please consult the Stub Runner Messaging sections.
===== Gradle Setup

View File

@@ -1,30 +0,0 @@
/*
* Copyright 2013-2016 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.cloud.contract.verifier.messaging;
/**
* Contract for filtering out messages that do not match the structure in the Contract DSL
*
* @author Marcin Grzejszczak
*/
public interface ContractVerifierFilter<M> {
/**
* @return @{code true} if the message should be passed through, @{code false} if the message should be filtered out,
*/
boolean matches(M message);
}