It seems you have some issues in your test setup:
- CheckBmiTest looks as it's designed to test DetermineResult rule
- to test CheckBmi you will just need double input as the rules is based on the bmi double value to return the status
Please check our Tutorial about testing and Examples to get more info how to properly setup it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is indeed true. I don't want to test the DetermineResult rule, but more the CheckBmi rule.
Even though I want to have a Test Data Table (with only doubles for the BMI) which I can use as Input. Is this possible? It should not be that hard, but I could not manage to find it..
EDIT: Alright i got it (for others, reference is Tutorial 3)
cheers
eav
Last edit: eav 2017-04-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
Assume I have this easy SpreadSheet which calculates the BMI based on height and weight of a person and calls a Decision Table.
The decision table looks like this (basically just mapping a bmi value to an interpretation):
So I want to test the mapping, and not the calculation of the bmi in my test.
But how can I do "mock" the bmi value?
I want to have something like this:
And my test looks like this (using the Test Data Table)
Any ideas?
cheers
eav
It seems you have some issues in your test setup:
- CheckBmiTest looks as it's designed to test DetermineResult rule
- to test CheckBmi you will just need double input as the rules is based on the bmi double value to return the status
Please check our Tutorial about testing and Examples to get more info how to properly setup it.
That is indeed true. I don't want to test the DetermineResult rule, but more the CheckBmi rule.
Even though I want to have a Test Data Table (with only doubles for the BMI) which I can use as Input. Is this possible? It should not be that hard, but I could not manage to find it..
EDIT: Alright i got it (for others, reference is Tutorial 3)
cheers
eav
Last edit: eav 2017-04-27