RedHatEMEA / rh6pd

9 stars 8 forks source link

Missing Unit Test for Quote Process, #41

Open ghost opened 11 years ago

ghost commented 11 years ago

The car insurance demo quote process is missing a working unit test.

Suggest we run as user admin , driver of 45 and a Ford Fiesta and test for a price of 299.

jamesread commented 11 years ago

Derek, we have https://github.com/RedHatUKI/rh6pd/blob/master/rh6pd-processController/src/test/java/org/rh6pd/processController/InsuranceFlowTest.java

Although admittedly this is in the rh6pd-processController project, which is pretty odd. It would be better off in rh6pd-businessRules project..

We also have some unit tests stored in the wrong place at the moment;

https://github.com/RedHatUKI/rh6pd/tree/master/rh6pd-businessRules/src/main/test/org/jbpm/evaluation/carinsurance

@ally-jarrett can you spend some time reviewing both branches and workout what we want to keep out of both of them (and which one is more "modern"?). We should then moved the insurance related tests into the businessRules project under the correct path.