Added tags for docs
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.example.loan;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -14,10 +12,14 @@ import com.example.loan.model.LoanApplication;
|
||||
import com.example.loan.model.LoanApplicationResult;
|
||||
import com.example.loan.model.LoanApplicationStatus;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
// tag::autoconfigure_stubrunner[]
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
@AutoConfigureStubRunner
|
||||
public class LoanApplicationServiceTests {
|
||||
// end::autoconfigure_stubrunner[]
|
||||
|
||||
@Autowired
|
||||
private LoanApplicationService sut;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
# tag::stubs[]
|
||||
stubrunner:
|
||||
work-offline: true
|
||||
stubs.ids: 'com.example:http-server:+:stubs:8080'
|
||||
stubs.ids: 'com.example:http-server:+:stubs:8080'
|
||||
# end::stubs[]
|
||||
|
||||
# tag::repo_root[]
|
||||
# stubrunner.stubs.repositoryRoot: http://repo.spring.io/libs-snapshot
|
||||
# end::repo_root[]
|
||||
|
||||
Reference in New Issue
Block a user