官术网_书友最值得收藏!

  • Spring 5.0 Projects
  • Nilang Patel
  • 196字
  • 2021-07-02 12:35:02

Reactive Streams TCK

Implementing the interfaces defined in Reactive Streams specification is not just suffice to build Reactive Streams. The specification comprises a set of components and rules. The components part is taken care of with four interfaces we discussed, while the rules are defined by Reactive Streams Technology Compatibility Kit (TCK).

The Reactive Streams TCK is a guideline to Reactive Streams implementors to verify their implementations against the rules defined in the specifications. The TCK is developed with a testing framework in Java called TestNG and can be used in other JVM-based programming languages, like Kotlin and Scala. 

TCK covers most of the rules, but not all, defined in the specification because for some of the rules, it is not possible to construct automated test cases. So theoretically, it can't be verified fully against the specification; however, it is helpful to validate most of the important rules.

TCK comprises four TestNG test classes and contains test cases, which can be extended by implementers and provide their implementation of Publisher, Subscriber, Subscription, and Processor to validate against the specification rules. You can get it in further detail from the link: https://github.com/reactive-streams/reactive-streams-jvm/tree/master/tck.

主站蜘蛛池模板: 台中市| 双流县| 辽宁省| 南汇区| 岳普湖县| 金秀| 雷州市| 万全县| 黄浦区| 夹江县| 靖州| 长宁区| 雅江县| 长白| 新兴县| 香港| 凌云县| 铁岭县| 德化县| 鄄城县| 双峰县| 荆州市| 佛冈县| 大渡口区| 余庆县| 和平区| 金川县| 金乡县| 千阳县| 永春县| 靖宇县| 朔州市| 梁河县| 巴中市| 营口市| 麟游县| 宁都县| 顺义区| 安丘市| 伊宁县| 孝昌县|