spring-cloud-contract-mountebank

Plug-in to generate mountebank predicates stub files

Лицензия

Лицензия

Группа

Группа

com.ascendcorp
Идентификатор

Идентификатор

spring-cloud-contract-mountebank
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

spring-cloud-contract-mountebank
Plug-in to generate mountebank predicates stub files
Ссылка на сайт

Ссылка на сайт

https://github.com/ascendcorp/spring-cloud-contract-mountebank
Система контроля версий

Система контроля версий

https://github.com/ascendcorp/spring-restdocs-amqp/tree/master

Скачать spring-cloud-contract-mountebank

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.ascendcorp/spring-cloud-contract-mountebank/ -->
<dependency>
    <groupId>com.ascendcorp</groupId>
    <artifactId>spring-cloud-contract-mountebank</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.ascendcorp/spring-cloud-contract-mountebank/
implementation 'com.ascendcorp:spring-cloud-contract-mountebank:1.0.0'
// https://jarcasting.com/artifacts/com.ascendcorp/spring-cloud-contract-mountebank/
implementation ("com.ascendcorp:spring-cloud-contract-mountebank:1.0.0")
'com.ascendcorp:spring-cloud-contract-mountebank:jar:1.0.0'
<dependency org="com.ascendcorp" name="spring-cloud-contract-mountebank" rev="1.0.0">
  <artifact name="spring-cloud-contract-mountebank" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ascendcorp', module='spring-cloud-contract-mountebank', version='1.0.0')
)
libraryDependencies += "com.ascendcorp" % "spring-cloud-contract-mountebank" % "1.0.0"
[com.ascendcorp/spring-cloud-contract-mountebank "1.0.0"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-web jar 2.1.16.RELEASE
org.springframework.cloud : spring-cloud-contract-converters jar
org.json : json jar 20180130

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.18.12

test (2)

Идентификатор библиотеки Тип Версия
org.spockframework : spock-core jar 1.3-groovy-2.5
org.springframework.boot : spring-boot-starter-test jar 2.1.16.RELEASE

Модули Проекта

Данный проект не имеет модулей.

Spring Rest Docs AMQP

Apache 2.0

Spring Rest Docs AMQP is extension for Spring Rest Docs and Spring Cloud Contract to generate snippet files from Contract, and we don't want repeat our self steps to manual create document specification of message schema.

This way, the message schema (snippet) is generated from Spring Cloud Contract testing in Aciidoctor format, and you can compile it to beautiful HTML or PDF document.

Pre-Requisite

Your application implement Spring Cloud Contract with stub AMQP message configure.

Add test dependency

<dependency>
    <groupId>com.ascendcorp</groupId>
    <artifactId>spring-restdocs-amqp</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>

Bind message processor

Initial AMQP message post processor and bind with RabbitTemplate in contract test base class

@Rule
public JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("target/generated-snippets");

@Autowired
RabbitTemplate rabbitTemplate;

@Rule
public TestName testName = new TestName();
``
@Before
public void setup() {
    String testName = this.testName.getMethodName();

    AmqpMessagePostProcessor amqpMessagePostProcessor = new AmqpMessagePostProcessor(testName, restDocumentation, rabbitTemplate);
    rabbitTemplate.setBeforePublishPostProcessors(amqpMessagePostProcessor);
}

After run contract testing, the snippet file will be generated to target/generated-snippets/{methodName} folder


Licensed under Apache Software License 2.0

com.ascendcorp

Ascendcorp

Версии библиотеки

Версия
1.0.0