JCUnit 0.5.4リリース。
TupleGeneratorを直接取り扱いたい人々が一定数いるように見受けられるので、そのためのクラスやメソッドを整理してみた。
TupleGenerator tg = new TupleGenerator.Builder().setFactors( new Factors.Builder() .add("OS", "Windows", "Linux") .add("Browser", "Chrome", "Firefox") .add("Bits", "32", "64").build() ).build(); for (Tuple each : tg) { ps.println(each); }
TupleGeneratorを明示的に指定するときはこう。
TupleGenerator tg = new TupleGenerator.Builder( IPO2TupleGenerator.class, ConstraintManager.DEFAULT_CONSTRAINT_MANAGER ).setFactors(new Factors.Builder() ...
その他の変更点は以下。
Enhancements
- Local constraints:
- Support overloading methods with the same number of arguments
- Multi-threading support
Fixed bugs
- Story objects are not refreshed before each test case is executed. Due to this issue, nested FSMs might not be tested when there is more than one test method in a test class.