Javadoc兼官方文档

前言

Mockito有个挺有意思的地方,它家的官方文档就是Javadoc, mockito是这么解释的:

All documentation is kept in javadocs because it guarantees consistency between what's on the web and what's in the source code. It allows access to documentation straight from the IDE even if you work offline. It motivates Mockito developers to keep documentation up-to-date with the code that they write, every day, with every commit.

所有文档都保存在javadoc中,因为这样可以保证web内容和源代码的一致性。甚至当你在线下工作时也可以从IDE中直接访问文档。它鼓励mockito的开发人员每天每次提交都保持文档和他们编写的代码的及时更新。

这里翻译来自mockito javadoc中的部分内容。

内容

results matching ""

    No results matching ""