Forum Discussion
FICO
11 years agoCommunity Manager
Database provider does not work.
Hi, I am trying to write a database provider, which should call the database, get a list of data and show me as a list in a Action Cell of a Decision Table. I have done the following: 1.Created a ...
FICO
11 years agoCommunity Manager
Start by testing it in a simple code or function template instance. If you get the values when displaying it in a "normal" template instance, you have an issue with the decision table template. If you get no values in the normal template instance, your have a problem with your provider.
If you implement your retrieval logic in non-blaze-api methods (which usually take hard-to-mock arguments), you can test the retrieval logic in a regular unit test. That would leave the blaze api integration as the only unknown factor in your provider, and that you need to test by creating templates that use your provider.
Regards,
Jostein