You need to sign in to do that
Don't have an account?
JessFeau
TemplateId test class
I have a custom controller where I have a set of conditional statements (if, else if) to set the mail.setTemplateId. I am trying to write a test class to cover these if statements but I can't figure out how to use TemplateId for the test.
I had done somthing similar.
This is excerpt of my visual force code sampleCon1.cls:
and this the test class:
Let me know if this works of you.
Thanks.
All Answers
I had done somthing similar.
This is excerpt of my visual force code sampleCon1.cls:
and this the test class:
Let me know if this works of you.
Thanks.
Thanks for responding! In the case of your "Mode", is that a string set in the apex class? When I am trying to replicate this, I am getting the error "Compile Error: Method does not exist or incorrect signature: void setAssay(String) from the type DocumentQuoteEmailController"
Mode is a picklist field. I have a visual force page where user selects a value on the picklist field, and based on that email is sent.
Sorry, that I was unclear in the above reply.
Thanks.