Spring Framwork Testing v5.3.36 SNAPSHOT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.1. Mock Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . objects instantiated by using the new operator, without Spring or any other container. You can use mock objects (in conjunction with other valuable testing techniques) to test your code in isolation. If testing scenarios, however, the Spring Framework provides mock objects and testing support classes, which are described in this chapter. 2.1. Mock Objects Spring includes a number of packages dedicated0 码力 | 193 页 | 2.53 MB | 1 年前3
Spring Framework 2.5.6 Changelogcloses the InputStream that it uses for "mime.types" resource reading Package org.springframework.mock * SimpleNamingContextBuilder supports "deactivate()"+"activate()", with the standard JNDI provider exposes the bean ClassLoader as thread context ClassLoader (if necessary) Package org.springframework.mock * MockHttpServletResponse's "encodeURL" allows for central overriding in subclasses (affecting "encodeRedirectURL" ConfigurableMimeFileTypeMap's and thus MimeMessageHelper's default MIME mappings Package org.springframework.mock * added "getServletContext()" method to MockHttpServletRequest (not available in the HttpServletRequest0 码力 | 106 页 | 302.13 KB | 1 年前3
Spring Framework 2.5.6 Changelogcloses the InputStream that it uses for "mime.types" resource reading Package org.springframework.mock * SimpleNamingContextBuilder supports "deactivate()"+"activate()", with the standard JNDI provider exposes the bean ClassLoader as thread context ClassLoader (if necessary) Package org.springframework.mock * MockHttpServletResponse's "encodeURL" allows for central overriding in subclasses (affecting "encodeRedirectURL" ConfigurableMimeFileTypeMap's and thus MimeMessageHelper's default MIME mappings Package org.springframework.mock * added "getServletContext()" method to MockHttpServletRequest (not available in the HttpServletRequest0 码力 | 106 页 | 305.07 KB | 1 年前3
Spring Framework 2.5.3 Changelogexposes the bean ClassLoader as thread context ClassLoader (if necessary) Package org.springframework.mock * MockHttpServletResponse's "encodeURL" allows for central overriding in subclasses (affecting "encodeRedirectURL" ConfigurableMimeFileTypeMap's and thus MimeMessageHelper's default MIME mappings Package org.springframework.mock * added "getServletContext()" method to MockHttpServletRequest (not available in the HttpServletRequest Package org.springframework.mail * fixed potential NPE in MailSendException Package org.springframework.mock * MockRequestDispatcher stores forwarded/included URL in MockHttpServletResponse even in case of0 码力 | 95 页 | 274.89 KB | 1 年前3
Spring Framework 2.5.4 Changelogexposes the bean ClassLoader as thread context ClassLoader (if necessary) Package org.springframework.mock * MockHttpServletResponse's "encodeURL" allows for central overriding in subclasses (affecting "encodeRedirectURL" ConfigurableMimeFileTypeMap's and thus MimeMessageHelper's default MIME mappings Package org.springframework.mock * added "getServletContext()" method to MockHttpServletRequest (not available in the HttpServletRequest Package org.springframework.mail * fixed potential NPE in MailSendException Package org.springframework.mock * MockRequestDispatcher stores forwarded/included URL in MockHttpServletResponse even in case of0 码力 | 97 页 | 278.81 KB | 1 年前3
Spring Framework 2.5.5 Changelogexposes the bean ClassLoader as thread context ClassLoader (if necessary) Package org.springframework.mock * MockHttpServletResponse's "encodeURL" allows for central overriding in subclasses (affecting "encodeRedirectURL" ConfigurableMimeFileTypeMap's and thus MimeMessageHelper's default MIME mappings Package org.springframework.mock * added "getServletContext()" method to MockHttpServletRequest (not available in the HttpServletRequest Package org.springframework.mail * fixed potential NPE in MailSendException Package org.springframework.mock * MockRequestDispatcher stores forwarded/included URL in MockHttpServletResponse even in case of0 码力 | 101 页 | 291.00 KB | 1 年前3
Spring Framework 2.5.2 ChangelogConfigurableMimeFileTypeMap's and thus MimeMessageHelper's default MIME mappings Package org.springframework.mock * added "getServletContext()" method to MockHttpServletRequest (not available in the HttpServletRequest Package org.springframework.mail * fixed potential NPE in MailSendException Package org.springframework.mock * MockRequestDispatcher stores forwarded/included URL in MockHttpServletResponse even in case of JavaMailSenderImpl, allowing for convenient configuration of specific keys Package org.springframework.mock * MockServletContext supports "getContext" (allowing to register contexts through the new "registerContext"0 码力 | 91 页 | 260.30 KB | 1 年前3
Spring Framework 2.5.1 ChangelogPackage org.springframework.mail * fixed potential NPE in MailSendException Package org.springframework.mock * MockRequestDispatcher stores forwarded/included URL in MockHttpServletResponse even in case of JavaMailSenderImpl, allowing for convenient configuration of specific keys Package org.springframework.mock * MockServletContext supports "getContext" (allowing to register contexts through the new "registerContext" OC4J instrumentation support from spring-context-support.jar to spring-context.jar * renamed spring-mock.jar to spring-test.jar, reflecting the focus on the test context framework * factored out Struts0 码力 | 84 页 | 239.53 KB | 1 年前3
Spring Framework 2.5.0 ChangelogJavaMailSenderImpl, allowing for convenient configuration of specific keys Package org.springframework.mock * MockServletContext supports "getContext" (allowing to register contexts through the new "registerContext" OC4J instrumentation support from spring-context-support.jar to spring-context.jar * renamed spring-mock.jar to spring-test.jar, reflecting the focus on the test context framework * factored out Struts ExtendedEntityManagerCreator's EntityManager proxies are serializable now Package org.springframework.mock * MockHttpServletResponse automatically flushes the Writer in case of a "write(int)" call too Package0 码力 | 78 页 | 221.83 KB | 1 年前3
Spring Framework 1.2.8 ChangeloggetInstance(Properties)" call, for compatibility with (old) JavaMail 1.1 Package org.springframework.mock * added overloaded constructors to MockFilterConfig, using a MockServletContext instead of a ServletContext in ManagedResource attribute (not just in ManagedResource annotation) Package org.springframework.mock * made "servletContextName" configurable in MockServletContext * MockServletContext's "getResourcePaths" allowing to specify method names to be excluded from MBean exposure Package org.springframework.mock * fixed MockServletContext's "getResource" and "getInputStream" implementations to return null for0 码力 | 89 页 | 254.65 KB | 1 年前3
共 307 条
- 1
- 2
- 3
- 4
- 5
- 6
- 31













