Skip to content
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

Merged
merged 2 commits into from
Apr 23, 2019
Merged

Conversation

matek2305
Copy link
Contributor

No description provided.


def 'should write json file with service name, expectations and capabilities to target directory'() {
given:
def packageName = 'dev.hltech.transferout.informationrequest'
Copy link
Contributor

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

Copy link
Collaborator

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"
Copy link
Collaborator

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

@@ -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'
Copy link
Collaborator

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 {
Copy link
Collaborator

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'
Copy link
Collaborator

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

@Felipe444
Copy link
Collaborator

Please add task to create custom exceptions policy.

@matek2305 matek2305 merged commit 3bdeb2c into master Apr 23, 2019
@matek2305 matek2305 deleted the write-vaunt-file branch April 23, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants