Archives

Apex Test Active Case Assignment Rules Assertion Fails

If you are testing active assignment rules you need to add it as an DMLOptions during testing else your assignment rule(s) will not get called and your assertion(s) may fail. If you have one active Case Assignment Rule you can use dmlOpts.assignmentRuleHeader.useDefaultRule = true else you need to query for AssignmentRules. To query AssignmentRules you […]

Rate this:

Read More

Heroku MemCached Junit Test

Heroku Memcached Cloud Junit Test

Rate this:

Read More

JUnit Test Spring MVC Web Services

Spring MVC REST Controller Spring MVC REST Junit Test

Rate this:

Read More

Minimize and Optimize Apex Test Classes with SmartFactory

I was writing allot of test code to create SObjects and all the necessary fields. There are some problems when writing test code when specifying all the necessary fields. Some of the things to consider when creating test fields is required fields and pre-populating lookups. Let us look at some examples: Let’s start of creating […]

Rate this:

Read More

Testing Active/Passive Datapower Cluster

Testing an Active/Passive Datapower Cluster is very easy. Just create exactly the same XML Firewall service on both Datapower A and Datapower B appliances. Specify the front End-Handler IP address as the VIP address created. Execute the curl command to run the policy where the VIP is the Front Side Handler.  Enable the probes on […]

Rate this:

Read More