From 9b6451cdbee5b3b8ec986a9dd060dd71f9c0125c Mon Sep 17 00:00:00 2001 From: Maciej Zielinski Date: Wed, 4 Nov 2015 09:11:02 +0100 Subject: [PATCH] #168 add intends in "should create class with full package" test --- .../io/codearte/accurest/GeneratorScannerSpec.groovy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/accurest-core/src/test/groovy/io/codearte/accurest/GeneratorScannerSpec.groovy b/accurest-core/src/test/groovy/io/codearte/accurest/GeneratorScannerSpec.groovy index 523dd5ba4f..fb573f7a1b 100644 --- a/accurest-core/src/test/groovy/io/codearte/accurest/GeneratorScannerSpec.groovy +++ b/accurest-core/src/test/groovy/io/codearte/accurest/GeneratorScannerSpec.groovy @@ -49,14 +49,14 @@ class GeneratorScannerSpec extends Specification { def "should create class with full package"() { given: - AccurestConfigProperties properties = new AccurestConfigProperties() - properties.contractsDslDir = new File(this.getClass().getResource("/directory/with/stubs/package").toURI()) - TestGenerator testGenerator = new TestGenerator(properties, classGenerator, Stub(FileSaver)) + AccurestConfigProperties properties = new AccurestConfigProperties() + properties.contractsDslDir = new File(this.getClass().getResource("/directory/with/stubs/package").toURI()) + TestGenerator testGenerator = new TestGenerator(properties, classGenerator, Stub(FileSaver)) when: - testGenerator.generateTestClasses("com.ofg") + testGenerator.generateTestClasses("com.ofg") then: - 1 * classGenerator.buildClass(_, 'exceptionsSpec', 'com.ofg.v1') >> "spec1" - 1 * classGenerator.buildClass(_, 'exceptionsSpec', 'com.ofg.v2') >> "spec2" + 1 * classGenerator.buildClass(_, 'exceptionsSpec', 'com.ofg.v1') >> "spec1" + 1 * classGenerator.buildClass(_, 'exceptionsSpec', 'com.ofg.v2') >> "spec2" } }