-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write service representation to file as json. #26
Conversation
|
||
def 'should write json file with service name, expectations and capabilities to target directory'() { | ||
given: | ||
def packageName = 'dev.hltech.transferout.informationrequest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
truly real-life example xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's change it to something different
build.gradle
Outdated
@@ -43,6 +43,7 @@ subprojects { | |||
|
|||
testCompile "org.spockframework:spock-core:$spockVersion" | |||
testCompile "org.codehaus.groovy:groovy-all:$groovyAllVersion" | |||
testRuntimeOnly "net.bytebuddy:byte-buddy:1.9.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep versions in one place
vaunt-generator/build.gradle
Outdated
@@ -9,6 +9,9 @@ buildscript { | |||
|
|||
dependencies { | |||
compile "org.reflections:reflections:$reflectionsVersion" | |||
compile "com.fasterxml.jackson.datatype:jackson-datatype-guava:$jacksonVersion" | |||
|
|||
testCompile 'com.jayway.jsonpath:json-path-assert:2.2.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
import java.io.IOException; | ||
import java.nio.file.Paths; | ||
|
||
@RequiredArgsConstructor | ||
public class VauntGenerator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make VauntGenerator an orchestrator, i. e. firstly it calls RepresentationExtractor, later it calls VauntWriter; or something similar.
|
||
def 'should write json file with service name, expectations and capabilities to target directory'() { | ||
given: | ||
def packageName = 'dev.hltech.transferout.informationrequest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's change it to something different
33b57df
to
079212a
Compare
…ion and write to file.
079212a
to
d6fd892
Compare
Please add task to create custom exceptions policy. |
No description provided.