|
|
|
|
@ -21,9 +21,11 @@ import org.junit.runner.RunWith;
@@ -21,9 +21,11 @@ import org.junit.runner.RunWith;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.boot.test.autoconfigure.json.app.ExampleBasicObject; |
|
|
|
|
import org.springframework.boot.test.autoconfigure.json.app.ExampleJsonApplication; |
|
|
|
|
import org.springframework.boot.test.json.BasicJsonTester; |
|
|
|
|
import org.springframework.boot.test.json.GsonTester; |
|
|
|
|
import org.springframework.boot.test.json.JacksonTester; |
|
|
|
|
import org.springframework.test.context.ContextConfiguration; |
|
|
|
|
import org.springframework.test.context.junit4.SpringRunner; |
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
|
@ -36,6 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@@ -36,6 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
|
@RunWith(SpringRunner.class) |
|
|
|
|
@JsonTest |
|
|
|
|
@AutoConfigureJsonTesters(enabled = false) |
|
|
|
|
@ContextConfiguration(classes = ExampleJsonApplication.class) |
|
|
|
|
public class JsonTestWithAutoConfigureJsonTestersTests { |
|
|
|
|
|
|
|
|
|
@Autowired(required = false) |
|
|
|
|
|