Skip to content

Instantly share code, notes, and snippets.

scenario AddHystrix should add dependencies and configuration for Hystrix
scenario AddHystrix should add dependencies and configuration for Hystrix
given
ArchiveRoot
scenario AddHystrix should add dependencies and configuration for Hystrix
given
ArchiveRoot
when
AddHystrix
scenario AddHystrix should add dependencies and configuration for Hystrix
given
ArchiveRoot
when
AddHystrix
then
fileExists "pom.xml"
@tag "spring-boot"
@tag "spring-cloud"
@tag "spring"
@tag "java"
@description "Adds support for Netflix Hystrix to your Spring Boot project"
editor AddHystrix
@tag "spring-boot"
@tag "spring-cloud"
@tag "spring"
@tag "java"
@description "Adds support for Netflix Hystrix to your Spring Boot project"
editor AddHystrix
let springCloudBuildDependencyManagementContent = """<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
@tag "spring-boot"
@tag "spring-cloud"
@tag "spring"
@tag "java"
@description "Adds support for Netflix Hystrix to your Spring Boot project"
editor AddHystrix
let springCloudBuildDependencyManagementContent = """<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
@tag "spring-boot"
@tag "spring-cloud"
@tag "spring"
@tag "java"
@description "Adds support for Netflix Hystrix to your Spring Boot project"
editor AddHystrix
let springCloudBuildDependencyManagementContent = """<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
scenario AddHystrix should not work on an empty project
given
Empty
when
AddHystrix
then
NoChange