Page:
Simulator
Pages
ActiveMQ
Ajax
AssertJ
BDD
Base Utils
BluePrintCSS(Deprecated)
CXF
Caching
Change4
ChangeLog
CreateNewProject
Crypto
Database
Datasource
DateTime
Design
Dozer
Eclipse
Ehcache
Email
Executable War
Graphite Windows
Graphite
Guava Cache
H2 Database
Hibernate Validator
High Performance Utils
Home
Home4.0
HttpClient
Hystrix
JMeter
JPA
JQuery Validation Plugin
JQuery
JSP
Jaxb
Jersey(Deprecated)
Jetty
Jmx
Json
Log
Logstash
Maven
Memcached
Metrics library
Mock
Monitoring and Metrics
MyBatis
Nodejs
Non Function
Performace test
Profiler
QuickStart
Rate Limiter
Redis
Reflection
ReleaseProcess(Internal)
Schedule
Selenium2
Serialize
Shiro Security
Simulator
SiteMesh
Sonar
Spring Data JPA
Spring MVC
Spring Restful Service
Spring
SpringSide Utils Overview
System Protection
Test Overview
Text
Transaction
Travis CI
Tutorial
Twitter Bootstrap
Unit Test
Validation
YUI Compressor
git
Clone
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Overview
开发、测试时,总需要很多模拟器,可以解耦对第三方服务的依赖,使得可以本地运行开发与测试,而且性能不受第三方依赖的影响。
嵌入式的版本
- 数据库: H2
- Redis/MongoDB: NoSQLUnit ,见springside-extension中的RestTemplate的测试。
- Memcached:JMemcached, 见springside-extension中的MemcachedSimulator。
- JMS:ActiveMQ自带嵌入式版本,见Showcase中JMS的配置
- Mail Server:GreenMail 见springside-extension中的MailServerSimulator
远端服务的模拟
- Node.js ,node.js编写的模拟器方便动态修改,支持tcp与http, 而且支持高并发,适合性能测试时使用。
- 另一个选择是DreamHead同学拿了Java Duke大奖,登上时代广场大屏幕的Moco,支持http,类似spring mvc那样可以配置各种请求的返回值,可以用一段JSON控制模拟器的返回,也可以在测试代码里进行动态设定。