You need to sign in to do that
Don't have an account?
Firas Taamallah 12
How to write test class for Enum class?
public enum XAP_DAO_DML_OperationTypeEnum { CREATE, // Insert MODIFY, // Update REMOVE, // Delete RESTORE // Undelete }How to cover this class?
public enum OrderType{ Coop, Normal, Package, SubInvoicing }
OrderType o = OrderType.Coop; OrderType m(Integer x, OrderType o){ if(o==OrderType.Normal) return o; //…. }
For further clarification, you can check the below blog too,
https://salesforcescool.blogspot.com/2018/10/enum-in-salesforce.html
I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.
Thanks.