首页> 外文期刊>Java Developer's Journal >Generating JUnit Test for Legacy Java Applications Maintaining apps you didn't write
【24h】

Generating JUnit Test for Legacy Java Applications Maintaining apps you didn't write

机译:为旧版Java应用程序生成JUnit测试维护您未编写的应用程序

获取原文
获取原文并翻译 | 示例

摘要

Unit tests give us the confidence to change applications, even legacy applications that we didn't write ourselves. To avoid the drudgery of writing a test case for every edge and boundary, we can let JUnit Factory generate a large set of characterization tests for us. If we need to explore an existing code base, characterization tests can act as a learning guide by documenting what the code actually does. If we need to change existing code, characterization tests act as critical "change detectors" that help us avoid unforeseen side effects.
机译:单元测试使我们有信心更改应用程序,甚至包括我们自己未编写的旧版应用程序。为了避免为每个边界和边界编写测试用例的麻烦,我们可以让JUnit Factory为我们生成大量的特性测试。如果我们需要探索现有的代码库,那么表征测试可以通过记录代码的实际作用来充当学习指南。如果我们需要更改现有代码,那么特性测试可以作为关键的“更改检测器”,帮助我们避免无法预料的副作用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号