通过关闭Oracle数据库模拟了此故障。
This failure is simulated by shutting down the Oracle database.
便宜:使用模拟数据库进行测试和调试使您节省了在每个开发人员的桌面上安装DB2(比方说)的成本。
It's cheap: Using a simulated database for testing and debugging saves you the cost of putting DB2 (for example) on every developer's desktop.
清单3所示的MockupDB是个单体类,模拟客户订单的数据库。
MockupDB, illustrated in Listing 3, is singleton class that simulates a database of customer orders.
应用推荐