Added tags for docs

This commit is contained in:
Marcin Grzejszczak
2016-07-19 14:37:52 +02:00
parent 9b7fe97a54
commit a697d9e8ef
2 changed files with 11 additions and 3 deletions

View File

@@ -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;

View File

@@ -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[]