oliviercailloux / decision-uta-method

A repository containing the doc and the work done during my research about UTA method.
MIT License
0 stars 0 forks source link

LabreucheExamples #9

Closed oliviercailloux closed 6 years ago

oliviercailloux commented 6 years ago

Create a class io.github.oliviercailloux.decision.arguer.labreuche.Examples with public static factory methods that return each a LabreucheModel, named getExample5(), getExample6(), etc. The code of these methods is moved from MainLabreucheModel (which can be deleted afterwards).

Also add getExample5Output(), etc., which return the right output (expected from the example).

In the tests, ensure that the output returned by the model is correct, not only that it returns the right anchor. To do this it will be clearer to write one test method per example (testExample5(), …) in LabreucheModelTest.

In the tests, it is not useful to test each time that only one anchor is applicable: test it once, then for the other ones check simply the returned anchor, then check that the output is correct.

tonyseg commented 6 years ago

All tests works now.

oliviercailloux commented 6 years ago

Great job.

tonyseg commented 6 years ago

exampleALL added, I merge the code and modified all generate example as in exampleALL.