A B C D E F G H I J L M N O P R S T V W
所有类 所有程序包
所有类 所有程序包
所有类 所有程序包
A
- AbstractJsonMarshalTester<T> - org.springframework.boot.test.json中的类
- Base class for AssertJ based JSON marshal testers.
- AbstractJsonMarshalTester() - 类 的构造器org.springframework.boot.test.json.AbstractJsonMarshalTester
- Create a new uninitialized
AbstractJsonMarshalTester
instance. - AbstractJsonMarshalTester(Class<?>, ResolvableType) - 类 的构造器org.springframework.boot.test.json.AbstractJsonMarshalTester
- Create a new
AbstractJsonMarshalTester
instance. - AbstractJsonMarshalTester.FieldInitializer<M> - org.springframework.boot.test.json中的类
- Utility class used to support field initialization.
- addEnvironment(String, ConfigurableEnvironment, String...) - 类 中的静态方法org.springframework.boot.test.util.EnvironmentTestUtils
- Add additional (high priority) values to an
Environment
. - addEnvironment(ConfigurableApplicationContext, String...) - 类 中的静态方法org.springframework.boot.test.util.EnvironmentTestUtils
- Add additional (high priority) values to an
Environment
owned by anApplicationContext
. - addEnvironment(ConfigurableEnvironment, String...) - 类 中的静态方法org.springframework.boot.test.util.EnvironmentTestUtils
- Add additional (high priority) values to an
Environment
. - after() - 枚举 中的静态方法org.springframework.boot.test.mock.mockito.MockReset
- Create
settings
to be used with mocks where reset should occur after each test method runs. - AFTER - org.springframework.boot.test.mock.mockito.MockReset
- Reset the mock after the test method runs.
- afterTestMethod(TestContext) - 类 中的方法org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
- answer() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- The
Answers
type to use on the mock. - ApplicationContextTestUtils - org.springframework.boot.test.util中的类
- Application context related test utilities.
- ApplicationContextTestUtils() - 类 的构造器org.springframework.boot.test.util.ApplicationContextTestUtils
- apply(Statement, Description) - 类 中的方法org.springframework.boot.test.rule.OutputCapture
- apply(MockReset, MockSettings) - 枚举 中的静态方法org.springframework.boot.test.mock.mockito.MockReset
- Apply
MockReset
to existingsettings
. - asArray() - 类 中的方法org.springframework.boot.test.json.ObjectContentAssert
- Verifies that the actual value is an array, and returns an array assertion, to allow chaining of array-specific assertions from this call.
- asMap() - 类 中的方法org.springframework.boot.test.json.ObjectContentAssert
- Verifies that the actual value is a map, and returns a map assertion, to allow chaining of map-specific assertions from this call.
- assertThat() - 类 中的方法org.springframework.boot.test.json.JsonContent
- 已过时。in favor of AssertJ's
assertThat
- assertThat() - 类 中的方法org.springframework.boot.test.json.ObjectContent
B
- BasicJsonTester - org.springframework.boot.test.json中的类
- AssertJ based JSON tester that works with basic JSON strings.
- BasicJsonTester() - 类 的构造器org.springframework.boot.test.json.BasicJsonTester
- Create a new uninitialized
BasicJsonTester
instance. - BasicJsonTester(Class<?>) - 类 的构造器org.springframework.boot.test.json.BasicJsonTester
- Create a new
BasicJsonTester
instance that will load resources as UTF-8. - BasicJsonTester(Class<?>, Charset) - 类 的构造器org.springframework.boot.test.json.BasicJsonTester
- Create a new
BasicJsonTester
instance. - before() - 枚举 中的静态方法org.springframework.boot.test.mock.mockito.MockReset
- Create
settings
to be used with mocks where reset should occur before each test method runs. - BEFORE - org.springframework.boot.test.mock.mockito.MockReset
- Reset the mock before the test method runs.
- beforeTestMethod(TestContext) - 类 中的方法org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
- bindTo(RestTemplate) - 类 中的静态方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- Return a bound
MockRestServiceServer
for the givenRestTemplate
, configured withRootUriRequestExpectationManager
when possible. - bindTo(RestTemplate, RequestExpectationManager) - 类 中的静态方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- Return a bound
MockRestServiceServer
for the givenRestTemplate
, configured withRootUriRequestExpectationManager
when possible. - buildTestContext() - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
C
- captureOutput() - 类 中的方法org.springframework.boot.test.rule.OutputCapture
- classes() - 注释类型 中的方法org.springframework.boot.test.context.SpringBootTest
- The annotated classes to use for loading an
ApplicationContext
. - classes() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- The classes to mock.
- classes() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.SpyBean
- The classes to spy.
- closeAll(ApplicationContext) - 类 中的静态方法org.springframework.boot.test.util.ApplicationContextTestUtils
- Closes this
ApplicationContext
and its parent hierarchy if any. - ConfigFileApplicationContextInitializer - org.springframework.boot.test.context中的类
ApplicationContextInitializer
that can be used with theContextConfiguration.initializers()
to trigger loading of application.properties.- ConfigFileApplicationContextInitializer() - 类 的构造器org.springframework.boot.test.context.ConfigFileApplicationContextInitializer
- createExpectationManager() - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- createHttpContext(HttpMethod, URI) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory
- createMock(MockDefinition, String) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- Factory method used by defined beans to actually create the mock.
- createModifiedConfig(MergedContextConfiguration, Class<?>[]) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- Create a new
MergedContextConfiguration
with different classes. - createModifiedConfig(MergedContextConfiguration, Class<?>[], String[]) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- Create a new
MergedContextConfiguration
with different classes and properties. - createSpyIfNecessary(Object, String) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- createTester(Class<?>, ResolvableType, M) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
- CustomHttpComponentsClientHttpRequestFactory(TestRestTemplate.HttpClientOption[]) - 类 的构造器org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory
- customize(RestTemplate) - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
D
- DefaultTestExecutionListenersPostProcessor - org.springframework.boot.test.context中的接口
- Callback interface trigger from
SpringBootTestContextBootstrapper
that can be used to post-process the list of defaultTestExecutionListener
classes to be used by a test. - DEFINED_PORT - org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- Creates an
EmbeddedWebApplicationContext
without defining anyserver.port=0
Environment
property. - delete(String, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Delete the resources at the specified URI.
- delete(String, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Delete the resources at the specified URI.
- delete(URI) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Delete the resources at the specified URL.
- detectDefaultConfigurationClasses(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- Detect the default configuration classes for the supplied test class.
- doesNotHaveEmptyJsonPathValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path does not produce an
empty
result. - doesNotHaveJsonPathValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces no result.
- doWithField(Field, Object, ObjectFactory<M>) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
E
- ENABLE_COOKIES - org.springframework.boot.test.web.client.TestRestTemplate.HttpClientOption
- Enable cookies.
- ENABLE_REDIRECTS - org.springframework.boot.test.web.client.TestRestTemplate.HttpClientOption
- Enable redirects.
- EnvironmentTestUtils - org.springframework.boot.test.util中的类
- Test utilities for setting environment values.
- EnvironmentTestUtils() - 类 的构造器org.springframework.boot.test.util.EnvironmentTestUtils
- exchange(String, HttpMethod, HttpEntity<?>, Class<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity
. - exchange(String, HttpMethod, HttpEntity<?>, Class<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity
. - exchange(String, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity
. - exchange(String, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity
. - exchange(URI, HttpMethod, HttpEntity<?>, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity
. - exchange(URI, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity
. - exchange(RequestEntity<?>, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the request specified in the given
RequestEntity
and return the response asResponseEntity
. - exchange(RequestEntity<?>, ParameterizedTypeReference<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the request specified in the given
RequestEntity
and return the response asResponseEntity
. - execute(String, HttpMethod, RequestCallback, ResponseExtractor<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback
, and reading the response with aResponseExtractor
. - execute(String, HttpMethod, RequestCallback, ResponseExtractor<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback
, and reading the response with aResponseExtractor
. - execute(URI, HttpMethod, RequestCallback, ResponseExtractor<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Execute the HTTP method to the given URL, preparing the request with the
RequestCallback
, and reading the response with aResponseExtractor
. - expect(Matcher<? super String>) - 类 中的方法org.springframework.boot.test.rule.OutputCapture
- Verify that the output is matched by the supplied
matcher
. - expectRequest(ExpectedCount, RequestMatcher) - 类 中的方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- extractingJsonPathArrayValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Extract the array value at the given JSON path for further object assertions.
- extractingJsonPathBooleanValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Extract the boolean value at the given JSON path for further object assertions.
- extractingJsonPathMapValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Extract the map value at the given JSON path for further object assertions.
- extractingJsonPathNumberValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Extract the number value at the given JSON path for further object assertions.
- extractingJsonPathStringValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Extract the string value at the given JSON path for further object assertions.
- extractingJsonPathValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Extract the value at the given JSON path for further object assertions.
- extraInterfaces() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- Any extra interfaces that should also be declared on the mock.
F
- FieldInitializer(Class<? extends AbstractJsonMarshalTester>) - 类 的构造器org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
- flush() - 类 中的方法org.springframework.boot.test.rule.OutputCapture
- forRestTemplate(RestTemplate, RequestExpectationManager) - 类 中的静态方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- Return
RequestExpectationManager
to be used for binding with the specifiedRestTemplate
. - forView(Class<?>) - 类 中的方法org.springframework.boot.test.json.JacksonTester
- Returns a new instance of
JacksonTester
with the view that should be used for json serialization/deserialization. - from(byte[]) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Create JSON content from the specified JSON bytes.
- from(File) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Create JSON content from the specified JSON file.
- from(InputStream) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Create JSON content from the specified JSON input stream.
- from(CharSequence) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Create JSON content from the specified String source.
- from(String, Class<?>) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Create JSON content from the specified resource path.
- from(Resource) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Create JSON content from the specified JSON resource.
G
- get(String) - 类 中的方法org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- getAnnotation(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- getClasses(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- getDefaultContextLoaderClass(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- getDefaultTestExecutionListenerClasses() - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- getDifferentiatorPropertySourceProperty() - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- Return a "differentiator" property to ensure that there is something to differentiate regular tests and bootstrapped tests.
- getExpectationManagers() - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- getForEntity(String, Class<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve an entity by doing a GET on the specified URL.
- getForEntity(String, Class<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve a representation by doing a GET on the URI template.
- getForEntity(URI, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve a representation by doing a GET on the URL .
- getForObject(String, Class<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve a representation by doing a GET on the specified URL.
- getForObject(String, Class<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve a representation by doing a GET on the URI template.
- getForObject(URI, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve a representation by doing a GET on the URL .
- getInlinedProperties(MergedContextConfiguration) - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- getJson() - 类 中的方法org.springframework.boot.test.json.JsonContent
- Return the actual JSON content string.
- getObject() - 类 中的方法org.springframework.boot.test.json.ObjectContent
- Return the actual object content.
- getOrder() - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- getOrFindConfigurationClasses(MergedContextConfiguration) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- getPage(String) - 类 中的方法org.springframework.boot.test.web.htmlunit.LocalHostWebClient
- getProperties(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- getRequestConfig() - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory
- getResource(String) - 类 中的方法org.springframework.boot.test.mock.web.SpringBootMockServletContext
- getResourceBasePathLocation(String) - 类 中的方法org.springframework.boot.test.mock.web.SpringBootMockServletContext
- getResourceLoadClass() - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return class used to load relative resources.
- getResourceLocation(String) - 类 中的方法org.springframework.boot.test.mock.web.SpringBootMockServletContext
- getResourceSuffix() - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- getResourceSuffixes() - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- getRestTemplate() - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Returns the underlying
RestTemplate
that is actually used to perform the REST operations. - getRootUri() - 类 中的方法org.springframework.boot.test.web.client.LocalHostUriTemplateHandler
- getServer() - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- getServer(RestTemplate) - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- getServers() - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- getSpringApplication() - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- Builds new
SpringApplication
instance. - getType() - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the type under test.
- getWebEnvironment(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- Return the
SpringBootTest.WebEnvironment
type for this test or null if undefined. - GsonTester<T> - org.springframework.boot.test.json中的类
- AssertJ based JSON tester backed by Gson.
- GsonTester(Gson) - 类 的构造器org.springframework.boot.test.json.GsonTester
- Create a new uninitialized
GsonTester
instance. - GsonTester(Class<?>, ResolvableType, Gson) - 类 的构造器org.springframework.boot.test.json.GsonTester
- Create a new
GsonTester
instance.
H
- hasEmptyJsonPathValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces an
empty
result. - hasJsonPathArrayValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces a non-null array result.
- hasJsonPathBooleanValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces a non-null boolean result.
- hasJsonPathMapValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces a non-null map result.
- hasJsonPathNumberValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces a non-null number result.
- hasJsonPathStringValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces a non-null string result.
- hasJsonPathValue(CharSequence, Object...) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verify that the actual value at the given JSON path produces a non-null result.
- headForHeaders(String, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve all headers of the resource specified by the URI template.
- headForHeaders(String, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve all headers of the resource specified by the URI template.
- headForHeaders(URI) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Retrieve all headers of the resource specified by the URL.
I
- initFields(Object, ObjectMapper) - 类 中的静态方法org.springframework.boot.test.json.JacksonTester
- Utility method to initialize
JacksonTester
fields. - initFields(Object, Gson) - 类 中的静态方法org.springframework.boot.test.json.GsonTester
- Utility method to initialize
GsonTester
fields. - initFields(Object, M) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
- initFields(Object, ObjectFactory<ObjectMapper>) - 类 中的静态方法org.springframework.boot.test.json.JacksonTester
- Utility method to initialize
JacksonTester
fields. - initFields(Object, ObjectFactory<Gson>) - 类 中的静态方法org.springframework.boot.test.json.GsonTester
- Utility method to initialize
GsonTester
fields. - initFields(Object, ObjectFactory<M>) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer
- initialize(Class<?>, Charset, ResolvableType) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Initialize the marshal tester for use.
- initialize(Class<?>, ResolvableType) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Initialize the marshal tester for use.
- initialize(Class<?>, ResolvableType) - 类 中的方法org.springframework.boot.test.json.BasicJsonTester
- Initialize the marshal tester for use, configuring it to load JSON resources as UTF-8.
- initialize(ConfigurableApplicationContext) - 类 中的方法org.springframework.boot.test.context.ConfigFileApplicationContextInitializer
- isEmbedded() - 枚举 中的方法org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- Return if the environment uses an
EmbeddedWebApplicationContext
. - isEqualTo(Object) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Overridden version of
isEqualTo
to perform JSON tests based on the object type. - isEqualToJson(byte[]) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
leniently
equal to the specified JSON bytes. - isEqualToJson(byte[], JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON bytes.
- isEqualToJson(byte[], JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON bytes.
- isEqualToJson(File) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
leniently
equal to the specified JSON file. - isEqualToJson(File, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON file.
- isEqualToJson(File, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON file.
- isEqualToJson(InputStream) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
leniently
equal to the specified JSON input stream. - isEqualToJson(InputStream, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON input stream.
- isEqualToJson(InputStream, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON input stream.
- isEqualToJson(CharSequence) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
leniently
equal to the specified JSON. - isEqualToJson(CharSequence, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON.
- isEqualToJson(CharSequence, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON.
- isEqualToJson(String, Class<?>) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
leniently
equal to the specified JSON resource. - isEqualToJson(String, Class<?>, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON resource.
- isEqualToJson(String, Class<?>, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON resource.
- isEqualToJson(Resource) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
leniently
equal to the specified JSON resource. - isEqualToJson(Resource, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON resource.
- isEqualToJson(Resource, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is equal to the specified JSON resource.
- isNotEqualTo(Object) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Overridden version of
isNotEqualTo
to perform JSON tests based on the object type. - isNotEqualToJson(byte[]) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
leniently
equal to the specified JSON bytes. - isNotEqualToJson(byte[], JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON bytes.
- isNotEqualToJson(byte[], JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON bytes.
- isNotEqualToJson(File) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
leniently
equal to the specified JSON file. - isNotEqualToJson(File, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON file.
- isNotEqualToJson(File, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON file.
- isNotEqualToJson(InputStream) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
leniently
equal to the specified JSON input stream. - isNotEqualToJson(InputStream, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON input stream.
- isNotEqualToJson(InputStream, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON input stream.
- isNotEqualToJson(CharSequence) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
leniently
equal to the specified JSON. - isNotEqualToJson(CharSequence, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON.
- isNotEqualToJson(CharSequence, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON.
- isNotEqualToJson(String, Class<?>) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
leniently
equal to the specified JSON resource. - isNotEqualToJson(String, Class<?>, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON resource.
- isNotEqualToJson(String, Class<?>, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON resource.
- isNotEqualToJson(Resource) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
leniently
equal to the specified JSON resource. - isNotEqualToJson(Resource, JSONComparator) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON resource.
- isNotEqualToJson(Resource, JSONCompareMode) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not equal to the specified JSON resource.
- isNotStrictlyEqualToJson(byte[]) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
strictly
equal to the specified JSON bytes. - isNotStrictlyEqualToJson(File) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
strictly
equal to the specified JSON file. - isNotStrictlyEqualToJson(InputStream) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
strictly
equal to the specified JSON input stream. - isNotStrictlyEqualToJson(CharSequence) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
strictly
equal to the specified JSON. - isNotStrictlyEqualToJson(String, Class<?>) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
strictly
equal to the specified JSON resource. - isNotStrictlyEqualToJson(Resource) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is not
strictly
equal to the specified JSON resource. - isStrictlyEqualToJson(byte[]) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
strictly
equal to the specified JSON bytes. - isStrictlyEqualToJson(File) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
strictly
equal to the specified JSON file. - isStrictlyEqualToJson(InputStream) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
strictly
equal to the specified JSON input stream. - isStrictlyEqualToJson(CharSequence) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
strictly
equal to the specified JSON. - isStrictlyEqualToJson(String, Class<?>) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
strictly
equal to the specified JSON resource. - isStrictlyEqualToJson(Resource) - 类 中的方法org.springframework.boot.test.json.JsonContentAssert
- Verifies that the actual value is
strictly
equal to the specified JSON resource.
J
- JacksonTester<T> - org.springframework.boot.test.json中的类
- AssertJ based JSON tester backed by Jackson.
- JacksonTester(ObjectMapper) - 类 的构造器org.springframework.boot.test.json.JacksonTester
- Create a new
JacksonTester
instance. - JacksonTester(Class<?>, ResolvableType, ObjectMapper) - 类 的构造器org.springframework.boot.test.json.JacksonTester
- Create a new
JacksonTester
instance. - JacksonTester(Class<?>, ResolvableType, ObjectMapper, Class<?>) - 类 的构造器org.springframework.boot.test.json.JacksonTester
- JsonContent<T> - org.springframework.boot.test.json中的类
- JSON content created usually from a JSON tester.
- JsonContent(Class<?>, ResolvableType, String) - 类 的构造器org.springframework.boot.test.json.JsonContent
- Create a new
JsonContent
instance. - JsonContentAssert - org.springframework.boot.test.json中的类
- AssertJ
Assert
forJsonContent
. - JsonContentAssert(Class<?>, CharSequence) - 类 的构造器org.springframework.boot.test.json.JsonContentAssert
- Create a new
JsonContentAssert
instance that will load resources as UTF-8. - JsonContentAssert(Class<?>, Charset, CharSequence) - 类 的构造器org.springframework.boot.test.json.JsonContentAssert
- Create a new
JsonContentAssert
instance that will load resources in the givencharset
.
L
- loadContext(String...) - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- loadContext(MergedContextConfiguration) - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- LocalHostUriTemplateHandler - org.springframework.boot.test.web.client中的类
UriTemplateHandler
will automatically prefix relative URIs withlocalhost:${local.server.port}
.- LocalHostUriTemplateHandler(Environment) - 类 的构造器org.springframework.boot.test.web.client.LocalHostUriTemplateHandler
- Create a new
LocalHostUriTemplateHandler
that will generatehttp
URIs using the givenenvironment
to determine the context path and port. - LocalHostUriTemplateHandler(Environment, String) - 类 的构造器org.springframework.boot.test.web.client.LocalHostUriTemplateHandler
- Create a new
LocalHostUriTemplateHandler
that will generate URIs with the givenscheme
and use the givenenvironment
to determine the context-path and port. - LocalHostWebClient - org.springframework.boot.test.web.htmlunit中的类
WebClient
will automatically prefix relative URLs withlocalhost:${local.server.port}
.- LocalHostWebClient(Environment) - 类 的构造器org.springframework.boot.test.web.htmlunit.LocalHostWebClient
- LocalHostWebConnectionHtmlUnitDriver - org.springframework.boot.test.web.htmlunit.webdriver中的类
LocalHostWebConnectionHtmlUnitDriver
will automatically prefix relative URLs withlocalhost:${local.server.port}
.- LocalHostWebConnectionHtmlUnitDriver(Environment) - 类 的构造器org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalHostWebConnectionHtmlUnitDriver(Environment, boolean) - 类 的构造器org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalHostWebConnectionHtmlUnitDriver(Environment, BrowserVersion) - 类 的构造器org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalHostWebConnectionHtmlUnitDriver(Environment, Capabilities) - 类 的构造器org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
M
- MOCK - org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- Creates a
WebApplicationContext
with a mock servlet environment or a regularApplicationContext
if servlet APIs are not on the classpath. - MockBean - org.springframework.boot.test.mock.mockito中的注释类型
- Annotation that can be used to add mocks to a Spring
ApplicationContext
. - MockBeans - org.springframework.boot.test.mock.mockito中的注释类型
- Container annotation that aggregates several
MockBean
annotations. - MockitoPostProcessor - org.springframework.boot.test.mock.mockito中的类
- MockitoPostProcessor(Set<Definition>) - 类 的构造器org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- Create a new
MockitoPostProcessor
instance with the given initial definitions. - MockitoTestExecutionListener - org.springframework.boot.test.mock.mockito中的类
TestExecutionListener
to triggerMockitoAnnotations.initMocks(Object)
when@MockBean
annotations are used.- MockitoTestExecutionListener() - 类 的构造器org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
- MockReset - org.springframework.boot.test.mock.mockito中的枚举
- Reset strategy used on a mock bean.
- MockServerRestTemplateCustomizer - org.springframework.boot.test.web.client中的类
RestTemplateCustomizer
that can be applied to aRestTemplateBuilder
instances to addMockRestServiceServer
support.- MockServerRestTemplateCustomizer() - 类 的构造器org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- MockServerRestTemplateCustomizer(Class<? extends RequestExpectationManager>) - 类 的构造器org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
N
- name() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- The name of the bean to register or replace.
- name() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.SpyBean
- The name of the bean to spy.
- NONE - org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- Creates an
ApplicationContext
and setsSpringApplication.setWebEnvironment(boolean)
tofalse
. - NONE - org.springframework.boot.test.mock.mockito.MockReset
- Don't reset the mock.
O
- ObjectContent<T> - org.springframework.boot.test.json中的类
- Object content usually created from
AbstractJsonMarshalTester
. - ObjectContent(ResolvableType, T) - 类 的构造器org.springframework.boot.test.json.ObjectContent
- Create a new
ObjectContent
instance. - ObjectContentAssert<A> - org.springframework.boot.test.json中的类
- AssertJ
Assert
forObjectContent
. - ObjectContentAssert(A) - 类 的构造器org.springframework.boot.test.json.ObjectContentAssert
- optionsForAllow(String, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Return the value of the Allow header for the given URI.
- optionsForAllow(String, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Return the value of the Allow header for the given URI.
- optionsForAllow(URI) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Return the value of the Allow header for the given URL.
- org.springframework.boot.test.context - 程序包 org.springframework.boot.test.context
- Classes and annotations related to configuring Spring's
ApplicationContext
for tests. - org.springframework.boot.test.context.filter - 程序包 org.springframework.boot.test.context.filter
- Test support for
TypeExcludeFilter
. - org.springframework.boot.test.json - 程序包 org.springframework.boot.test.json
- Support for testing JSON.
- org.springframework.boot.test.mock.mockito - 程序包 org.springframework.boot.test.mock.mockito
- Mockito integration for Spring Boot tests.
- org.springframework.boot.test.mock.web - 程序包 org.springframework.boot.test.mock.web
- Mock web classes specific to Spring Boot.
- org.springframework.boot.test.rule - 程序包 org.springframework.boot.test.rule
- Useful JUnit
@Rule
classes. - org.springframework.boot.test.util - 程序包 org.springframework.boot.test.util
- General purpose test utilities.
- org.springframework.boot.test.web.client - 程序包 org.springframework.boot.test.web.client
- Web client test utilities.
- org.springframework.boot.test.web.htmlunit - 程序包 org.springframework.boot.test.web.htmlunit
- HtmlUnit support classes.
- org.springframework.boot.test.web.htmlunit.webdriver - 程序包 org.springframework.boot.test.web.htmlunit.webdriver
- Selenium support classes.
- OutputCapture - org.springframework.boot.test.rule中的类
- JUnit
@Rule
to capture output from System.out and System.err. - OutputCapture() - 类 的构造器org.springframework.boot.test.rule.OutputCapture
P
- parse(byte[]) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from parsing the specific JSON bytes. - parse(String) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from parsing the specific JSON String. - parseObject(byte[]) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from parsing the specific JSON bytes.
- parseObject(String) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from parsing the specific JSON String.
- patchForObject(String, Object, Class<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Update a resource by PATCHing the given object to the URI template, and returns the representation found in the response.
- patchForObject(String, Object, Class<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Update a resource by PATCHing the given object to the URI template, and returns the representation found in the response.
- patchForObject(URI, Object, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Update a resource by PATCHing the given object to the URL, and returns the representation found in the response.
- postForEntity(String, Object, Class<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URI template, and returns the response as
ResponseEntity
. - postForEntity(String, Object, Class<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URI template, and returns the response as
HttpEntity
. - postForEntity(URI, Object, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URL, and returns the response as
ResponseEntity
. - postForLocation(String, Object, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location
header. - postForLocation(String, Object, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location
header. - postForLocation(URI, Object) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URL, and returns the value of the
Location
header. - postForObject(String, Object, Class<T>, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.
- postForObject(String, Object, Class<T>, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.
- postForObject(URI, Object, Class<T>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create a new resource by POSTing the given object to the URL, and returns the representation found in the response.
- postProcessBeanFactory(ConfigurableListableBeanFactory) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- postProcessDefaultTestExecutionListeners(Set<Class<? extends TestExecutionListener>>) - 接口 中的方法org.springframework.boot.test.context.DefaultTestExecutionListenersPostProcessor
- Post process the list of default
TestExecutionListener
classes to be used. - postProcessPropertyValues(PropertyValues, PropertyDescriptor[], Object, String) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- prepareTestInstance(TestContext) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener
- processContextConfiguration(ContextConfigurationAttributes) - 类 中的方法org.springframework.boot.test.context.SpringBootContextLoader
- processMergedContextConfiguration(MergedContextConfiguration) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- processPropertySourceProperties(MergedContextConfiguration, List<String>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- Post process the property source properties, adding or removing elements as required.
- properties() - 注释类型 中的方法org.springframework.boot.test.context.SpringBootTest
- Properties in form key=value that should be added to the Spring
Environment
before the test runs. - proxyTargetAware() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.SpyBean
- Indicates that Mockito methods such as
verify(mock)
should use thetarget
of AOP advised beans, rather than the proxy itself. - put(String, Object, Object...) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Create or update a resource by PUTting the given object to the URI.
- put(String, Object, Map<String, ?>) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Creates a new resource by PUTting the given object to URI template.
- put(URI, Object) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Creates a new resource by PUTting the given object to URL.
R
- RANDOM_PORT - org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- Creates an
EmbeddedWebApplicationContext
and sets aserver.port=0
Environment
property (which usually triggers listening on a random port). - read(File) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from reading from the specified file. - read(InputStream) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from reading from the specified input stream. - read(Reader) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from reading from the specified reader. - read(String) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from reading from the specified classpath resource. - read(Resource) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
ObjectContent
from reading from the specified resource. - readObject(File) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from reading from the specified file.
- readObject(InputStream) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from reading from the specified input stream.
- readObject(InputStream, ResolvableType) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Read from the specified input stream to create an object of the specified type.
- readObject(InputStream, ResolvableType) - 类 中的方法org.springframework.boot.test.json.JacksonTester
- readObject(Reader) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from reading from the specified reader.
- readObject(Reader, ResolvableType) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Read from the specified reader to create an object of the specified type.
- readObject(Reader, ResolvableType) - 类 中的方法org.springframework.boot.test.json.GsonTester
- readObject(Reader, ResolvableType) - 类 中的方法org.springframework.boot.test.json.JacksonTester
- readObject(String) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from reading from the specified classpath resource.
- readObject(Resource) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return the object created from reading from the specified resource.
- register(BeanDefinitionRegistry) - 类 中的静态方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- Register the processor with a
BeanDefinitionRegistry
. - register(BeanDefinitionRegistry, Class<? extends MockitoPostProcessor>, Set<Definition>) - 类 中的静态方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- Register the processor with a
BeanDefinitionRegistry
. - register(BeanDefinitionRegistry, Set<Definition>) - 类 中的静态方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- Register the processor with a
BeanDefinitionRegistry
. - releaseOutput() - 类 中的方法org.springframework.boot.test.rule.OutputCapture
- reset() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- The reset mode to apply to the mock bean.
- reset() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.SpyBean
- The reset mode to apply to the spied bean.
- reset() - 类 中的方法org.springframework.boot.test.rule.OutputCapture
- Discard all currently accumulated output.
- reset() - 类 中的方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- ResetMocksTestExecutionListener - org.springframework.boot.test.mock.mockito中的类
TestExecutionListener
to reset any mock beans that have been marked with aMockReset
.- ResetMocksTestExecutionListener() - 类 的构造器org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
- resolveContextLoader(Class<?>, List<ContextConfigurationAttributes>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- RootUriRequestExpectationManager - org.springframework.boot.test.web.client中的类
RequestExpectationManager
that strips the specified root URI from the request before verification.- RootUriRequestExpectationManager(String, RequestExpectationManager) - 类 的构造器org.springframework.boot.test.web.client.RootUriRequestExpectationManager
S
- serializable() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- If the generated mock is serializable.
- setBeanClassLoader(ClassLoader) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- setBeanFactory(BeanFactory) - 类 中的方法org.springframework.boot.test.mock.mockito.MockitoPostProcessor
- setDetectRootUri(boolean) - 类 中的方法org.springframework.boot.test.web.client.MockServerRestTemplateCustomizer
- Set if root URIs from
RootUriRequestExpectationManager
should be detected and applied to theMockRestServiceServer
. - setUriTemplateHandler(UriTemplateHandler) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Configure the
UriTemplateHandler
to use to expand URI templates. - SpringBootContextLoader - org.springframework.boot.test.context中的类
- A
ContextLoader
that can be used to test Spring Boot applications (those that normally startup usingSpringApplication
). - SpringBootContextLoader() - 类 的构造器org.springframework.boot.test.context.SpringBootContextLoader
- SpringBootMockServletContext - org.springframework.boot.test.mock.web中的类
MockServletContext
implementation for Spring Boot.- SpringBootMockServletContext(String) - 类 的构造器org.springframework.boot.test.mock.web.SpringBootMockServletContext
- SpringBootMockServletContext(String, ResourceLoader) - 类 的构造器org.springframework.boot.test.mock.web.SpringBootMockServletContext
- SpringBootTest - org.springframework.boot.test.context中的注释类型
- Annotation that can be specified on a test class that runs Spring Boot based tests.
- SpringBootTest.WebEnvironment - org.springframework.boot.test.context中的枚举
- An enumeration web environment modes.
- SpringBootTestContextBootstrapper - org.springframework.boot.test.context中的类
TestContextBootstrapper
for Spring Boot.- SpringBootTestContextBootstrapper() - 类 的构造器org.springframework.boot.test.context.SpringBootTestContextBootstrapper
- SpyBean - org.springframework.boot.test.mock.mockito中的注释类型
- Annotation that can be used to apply Mockito spies to a Spring
ApplicationContext
. - SpyBeans - org.springframework.boot.test.mock.mockito中的注释类型
- Container annotation that aggregates several
SpyBean
annotations. - SSL - org.springframework.boot.test.web.client.TestRestTemplate.HttpClientOption
- Use a
SSLConnectionSocketFactory
withTrustSelfSignedStrategy
.
T
- TestComponent - org.springframework.boot.test.context中的注释类型
@Component
that can be used when a bean is intended only for tests, and should be excluded from Spring Boot's component scanning.- TestConfiguration - org.springframework.boot.test.context中的注释类型
@Configuration
that can be used to define additional beans or customizations for a test.- TestRestTemplate - org.springframework.boot.test.web.client中的类
- Convenient alternative of
RestTemplate
that is suitable for integration tests. - TestRestTemplate(String, String, TestRestTemplate.HttpClientOption...) - 类 的构造器org.springframework.boot.test.web.client.TestRestTemplate
- Create a new
TestRestTemplate
instance with the specified credentials. - TestRestTemplate(TestRestTemplate.HttpClientOption...) - 类 的构造器org.springframework.boot.test.web.client.TestRestTemplate
- Create a new
TestRestTemplate
instance. - TestRestTemplate(RestTemplateBuilder) - 类 的构造器org.springframework.boot.test.web.client.TestRestTemplate
- Create a new
TestRestTemplate
instance. - TestRestTemplate(RestTemplate) - 类 的构造器org.springframework.boot.test.web.client.TestRestTemplate
- TestRestTemplate(RestTemplate, String, String, TestRestTemplate.HttpClientOption...) - 类 的构造器org.springframework.boot.test.web.client.TestRestTemplate
- TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory - org.springframework.boot.test.web.client中的类
HttpComponentsClientHttpRequestFactory
to apply customizations.- TestRestTemplate.HttpClientOption - org.springframework.boot.test.web.client中的枚举
- Options used to customize the Apache Http Client if it is used.
- toString() - 类 中的方法org.springframework.boot.test.json.JsonContent
- toString() - 类 中的方法org.springframework.boot.test.json.ObjectContent
- toString() - 类 中的方法org.springframework.boot.test.rule.OutputCapture
V
- validateRequest(ClientHttpRequest) - 类 中的方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- value() - 注释类型 中的方法org.springframework.boot.test.context.SpringBootTest
- Alias for
SpringBootTest.properties()
. - value() - 注释类型 中的方法org.springframework.boot.test.context.TestComponent
- The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an auto-detected component.
- value() - 注释类型 中的方法org.springframework.boot.test.context.TestConfiguration
- Explicitly specify the name of the Spring bean definition associated with this Configuration class.
- value() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBean
- The classes to mock.
- value() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.MockBeans
- Return the contained
MockBean
annotations. - value() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.SpyBean
- The classes to spy.
- value() - 注释类型 中的方法org.springframework.boot.test.mock.mockito.SpyBeans
- Return the contained
SpyBean
annotations. - valueOf(String) - 枚举 中的静态方法org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- 返回带有指定名称的该类型的枚举常量。
- valueOf(String) - 枚举 中的静态方法org.springframework.boot.test.mock.mockito.MockReset
- 返回带有指定名称的该类型的枚举常量。
- valueOf(String) - 枚举 中的静态方法org.springframework.boot.test.web.client.TestRestTemplate.HttpClientOption
- 返回带有指定名称的该类型的枚举常量。
- values() - 枚举 中的静态方法org.springframework.boot.test.context.SpringBootTest.WebEnvironment
- 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
- values() - 枚举 中的静态方法org.springframework.boot.test.mock.mockito.MockReset
- 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
- values() - 枚举 中的静态方法org.springframework.boot.test.web.client.TestRestTemplate.HttpClientOption
- 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
- verify() - 类 中的方法org.springframework.boot.test.web.client.RootUriRequestExpectationManager
- verifyConfiguration(Class<?>) - 类 中的方法org.springframework.boot.test.context.SpringBootTestContextBootstrapper
W
- webEnvironment() - 注释类型 中的方法org.springframework.boot.test.context.SpringBootTest
- The type of web environment to create when applicable.
- withBasicAuth(String, String) - 类 中的方法org.springframework.boot.test.web.client.TestRestTemplate
- Creates a new
TestRestTemplate
with the same configuration as this one, except that it will send basic authorization headers using the givenusername
andpassword
. - withSettings(MockReset) - 枚举 中的静态方法org.springframework.boot.test.mock.mockito.MockReset
- Create
settings
to be used with mocks where a specific reset should occur. - write(T) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Return
JsonContent
from writing the specific value. - writeObject(T, ResolvableType) - 类 中的方法org.springframework.boot.test.json.AbstractJsonMarshalTester
- Write the specified object to a JSON string.
- writeObject(T, ResolvableType) - 类 中的方法org.springframework.boot.test.json.GsonTester
- writeObject(T, ResolvableType) - 类 中的方法org.springframework.boot.test.json.JacksonTester
所有类 所有程序包