Skip to main content

Apex Test Classes

Apex Test Classes are used for functional testing. It makes sure the written code is working fine or not. With apex test class we can test our functionality with positive as well as negative scenarios.




Author : Harshal Lad

Comments

Popular posts from this blog

Apex Triggers and Classes

  Apex Triggers   is use to execute the functionality or piece of code on record manipulation ( i.e., CREATE / UPDATE / DELETE / UNDELETE   records ). A trigger executes before and after an event occurs on record.

OOP,s Concepts in APEX

What is OOP's Concepts in APEX Programming ?   Object-Oriented Programming System (OOPs) is a programming concept that works on the principles of abstraction , encapsulation , inheritance , and polymorphism . It allows users to create objects they want and create methods to handle those objects. The basic concept of OOPs is to create objects, re-use them throughout the program, and manipulate these objects to get results. OOP meaning “Object Oriented Programming” is a popularly known and widely used concept in modern programming languages like Java, Apex and many other. List of OOP's Concepts >  Class  :   The class is one of the Basic concepts of OOPs which is a group of similar entities. It is only a logical component and not the physical entity. Lets understand this one of the OOPs Concepts with example, if you had a class called “Expensive Cars” it coul...

Inheritance in Apex

Inheritance in Apex I nheritance in Apex is a mechanism by which one object acquires all the properties and behaviors of parent object. The idea behind inheritance in Apex is that you can create new classes that are built upon existing classes. Whenever you inherit from an existing class, you can reuse methods and fields of parent / super class, as well as you can add new methods and fields also based on the requirements. Reason to use inheritance : For Method Overriding (to achieved runtime polymorphism). For Code Reusability Various term used in inheritance : Class: A class is a concept/prototype/template of common properties, from which objects are created. Child Class/Sub Class: Child class is a class which inherits the other class, known as child class. It is also called extended class, derived class, or sub class. Parent Class/Super Class: Parent class is t...