Skip to content

Commit

Permalink
fix: after upgrade of Spock
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Sep 20, 2020
1 parent 4165ca8 commit 62bdb1e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions consumer/java8/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dependencies {
api project(path: ":consumer", configuration: 'default')

testImplementation "org.junit.jupiter:junit-jupiter:${project.junit5Version}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit5Version}"
testRuntime "ch.qos.logback:logback-classic:${project.logbackVersion}"
testImplementation "org.codehaus.groovy:groovy:${project.groovyVersion}"
testImplementation "org.codehaus.groovy:groovy-json:${project.groovyVersion}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.Map;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;

public class LambdaDslJsonArrayTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;

public class LambdaDslObjectTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.io.IOException;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;

public class LambdaDslTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.pactfoundation.consumer.dsl

import org.hamcrest.CoreMatchers.equalTo
import org.junit.Assert.assertThat
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test

class ExtensionsTest {
Expand Down
1 change: 1 addition & 0 deletions core/matchers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies {
testRuntime "ch.qos.logback:logback-classic:${project.logbackVersion}"
testRuntime "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testCompile "org.codehaus.groovy:groovy:${project.groovyVersion}"
testCompile "org.codehaus.groovy:groovy-xml:${project.groovyVersion}"
testCompile('org.spockframework:spock-core:2.0-M3-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class MatchersSpec extends Specification {
@Unroll
def 'wildcardMatchingEnabled - #enabledOrDisabled when pact.matching.wildcard = "#value"'() {
given:
def testInvocation = { String value ->
System.setProperty('pact.matching.wildcard', value)
def testInvocation = { String v ->
System.setProperty('pact.matching.wildcard', v)
Matchers.wildcardMatchingEnabled()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class ContentType(val contentType: MediaType?) {

val JSON_TYPE = ".*json".toRegex(setOf(RegexOption.IGNORE_CASE))

val registry: MediaTypeRegistry = MimeTypes.getDefaultMimeTypes(ContentType::class.java.classLoader).mediaTypeRegistry
val registry: MediaTypeRegistry = MimeTypes.getDefaultMimeTypes(ContentType::class.java.classLoader)
.mediaTypeRegistry

@JvmStatic
val UNKNOWN = ContentType(null)
Expand Down
1 change: 1 addition & 0 deletions provider/maven/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation 'com.github.ajalt:mordant:1.2.1'

testImplementation "junit:junit:${project.junitVersion}"
testRuntime "org.junit.vintage:junit-vintage-engine:${project.junit5Version}"
testCompile "org.codehaus.groovy:groovy:${project.groovyVersion}"
testCompile "org.codehaus.groovy:groovy-nio:${project.groovyVersion}"
Expand Down

0 comments on commit 62bdb1e

Please sign in to comment.