File tree 5 files changed +6
-8
lines changed
src/test/java/au/com/dius/pact/provider/spring/junit5
5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ dependencies {
41
41
implementation ' org.apache.commons:commons-collections4:4.4'
42
42
implementation ' org.apache.tika:tika-core:2.9.1'
43
43
implementation ' com.google.guava:guava:31.1-jre'
44
- implementation ' org.slf4j:slf4j-api:1.7.36 '
44
+ implementation ' org.slf4j:slf4j-api:2.0.4 '
45
45
implementation ' io.ktor:ktor-http-jvm:2.3.8'
46
46
implementation ' io.ktor:ktor-server-netty:2.3.8'
47
47
implementation ' io.ktor:ktor-network-tls-certificates:2.3.8'
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ dependencies {
17
17
implementation ' org.apache.commons:commons-lang3'
18
18
implementation ' javax.mail:mail:1.5.0-b01'
19
19
20
- testImplementation ' org.springframework.boot:spring-boot-starter-test:2.5.14'
21
- testImplementation ' org.springframework.boot:spring-boot-starter-web:2.5.14'
20
+ testImplementation ' org.springframework.boot:spring-boot-test:2.5.14'
21
+ testImplementation ' org.springframework.boot:spring-boot-test-autoconfigure:2.5.14'
22
+ testImplementation ' org.springframework:spring-webmvc:5.3.20'
22
23
testImplementation ' org.apache.groovy:groovy'
24
+ testImplementation ' org.yaml:snakeyaml:1.33'
23
25
}
Original file line number Diff line number Diff line change 5
5
import au .com .dius .pact .provider .junitsupport .Provider ;
6
6
import au .com .dius .pact .provider .junitsupport .loader .PactFolder ;
7
7
import org .junit .jupiter .api .BeforeEach ;
8
- import org .junit .jupiter .api .Disabled ;
9
8
import org .junit .jupiter .api .TestTemplate ;
10
9
import org .junit .jupiter .api .extension .ExtendWith ;
11
10
import org .springframework .beans .factory .annotation .Autowired ;
24
23
@ WebMvcTest
25
24
@ Provider ("myAwesomeService" )
26
25
@ PactFolder ("pacts" )
27
- @ Disabled // TODO: this fails with NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
28
26
class MockMvcTestTargetWebMvcTestJava {
29
27
30
28
@ Autowired
Original file line number Diff line number Diff line change 4
4
import au .com .dius .pact .provider .junitsupport .Provider ;
5
5
import au .com .dius .pact .provider .junitsupport .loader .PactFolder ;
6
6
import org .junit .jupiter .api .BeforeEach ;
7
- import org .junit .jupiter .api .Disabled ;
8
7
import org .junit .jupiter .api .TestTemplate ;
9
8
import org .junit .jupiter .api .extension .ExtendWith ;
10
9
import org .springframework .boot .test .context .SpringBootTest ;
18
17
@ SpringBootTest
19
18
@ Provider ("myAwesomeService" )
20
19
@ PactFolder ("pacts" )
21
- @ Disabled // TODO: this fails with NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
22
20
class WebTestClientPactTest {
23
21
24
22
public static class Handler {
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ public class PactVerificationTest {
198
198
```
199
199
200
200
#### JUnit5
201
- You actually don' t need to dependend on `pact-jvm-provider-spring` for this. It' s sufficient to depend on `pact- jvm- provider- junit5`.
201
+ You actually don' t need to depend on `pact-jvm-provider-spring` for this. It' s sufficient to depend on `pact- jvm- provider- junit5`.
202
202
203
203
You can set the port to the `HttpTestTarget ` object in the before method.
204
204
You can’t perform that action at this time.
0 commit comments