File tree Expand file tree Collapse file tree
wiremock-jetty/src/test/java/com/example Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535import static org .assertj .core .api .Assertions .assertThat ;
3636
3737@ ActiveProfiles ("classrule" )
38-
38+ // tag::wiremock_test1[]
3939
4040@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
4141public class WiremockForDocsClassRuleTests {
@@ -63,8 +63,8 @@ static void clean() {
6363 @ Autowired
6464 private Service service ;
6565
66-
67-
66+ // end::wiremock_test1[]
67+ // tag::wiremock_test2[]
6868 @ BeforeEach
6969 public void setup () {
7070 this .service .setBase ("http://localhost:" + wiremock .port ());
@@ -81,4 +81,4 @@ public void contextLoads() throws Exception {
8181 }
8282
8383}
84-
84+ // end::wiremock_test2[]
Original file line number Diff line number Diff line change 2929
3030import static org .assertj .core .api .Assertions .assertThat ;
3131
32-
32+ // tag::wiremock_test[]
3333
3434@ SpringBootTest (webEnvironment = WebEnvironment .NONE )
3535public class WiremockForDocsMockServerApplicationTests {
@@ -52,4 +52,4 @@ public void contextLoads() throws Exception {
5252 }
5353
5454}
55-
55+ // end::wiremock_test[]
Original file line number Diff line number Diff line change 3535import static org .assertj .core .api .Assertions .assertThat ;
3636
3737@ ActiveProfiles ("docs" )
38-
38+ // tag::wiremock_test1[]
3939
4040@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
4141@ AutoConfigureWireMock (port = 0 )
4242public class WiremockForDocsTests {
4343
44-
44+ // end::wiremock_test1[]
4545
4646 @ Autowired
4747 Environment environment ;
4848
49-
49+ // tag::wiremock_test2[]
5050 // A service that calls out over HTTP
5151 @ Autowired
5252 private Service service ;
@@ -68,4 +68,4 @@ public void contextLoads() throws Exception {
6868 }
6969
7070}
71-
71+ // end::wiremock_test2[]
You can’t perform that action at this time.
0 commit comments