WireMock done

This commit is contained in:
Marcin Grzejszczak
2016-12-06 14:32:01 +01:00
parent 7558fb183e
commit a328130418
32 changed files with 655 additions and 181 deletions

View File

@@ -1,3 +1,19 @@
/*
* 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.spec
/**
@@ -26,7 +42,7 @@ public interface ContractConverter<T> {
* @param file - file to convert
* @return - {@link Contract} representation of the file
*/
Contract convertFrom(File file)
Collection<Contract> convertFrom(File file)
/**
* Converts the given {@link Contract} to a {@link T} representation
@@ -34,5 +50,5 @@ public interface ContractConverter<T> {
* @param contract - the parsed contract
* @return - {@link T} the type to which we do the conversion
*/
T convertTo(Contract contract)
T convertTo(Collection<Contract> contract)
}