Salesforce Studies
Jan 24, 2021

Trailhead Rank
Status of Studies:
25 Badges
18,400 Points
5 Trails
Current as of 01/24/2021
Don’s Salesforce Trailhead Profile
- Progress towards Salesforce Developer Certification 15%

I’m currently working on the Developer Beginner trail. As seen from the previous image, I was 66% finished with that trail. Getting close to wrapping up that one! So far, of that trail, I’ve finished the following:
- Platform Development Basics
- Data Modeling
- Data Management
- Data Security
- Formulas and Validation
- Lightning Flow
- Salesforce Mobile App Customization
- Apex Basics & Database
- Apex Triggers
- Quick Start: Visual Studio Code for Salesforce Development
Next up was the Apex Testing module.
First up, Apex Unit Tests. By the end of this lesson, I’d be able to:
- Describe the key benefits of Apex unit tests.
- Define a class with test methods.
- Execute all test methods in a class and inspect failures.
- Create and execute a suite of test classes.
Didn’t seem difficult. But then It’d be my first time doing an unit test though! This is what I coded:
[java]
@isTest
private class TestVerifyDate {
@isTest static void CheckDatesTesttrue() {
Date date1 = date.today();
Date date2 = date1.addDays(29);
Date t = VerifyDate.CheckDates(date1, date2);
System.assertEquals(t, date2);
}
@isTest static void DateOver() {
Date date1 = date.today();
Date date2 = date1.addDays(31);
Date t = VerifyDate.CheckDates(date1, date2);
System.assertNotEquals(t, date1);
}
}
[/java]
I then ran the unit tests. Seemed to run well. Then I had Trailhead check the challenge; I passed and got 500 points! As it was now 12:16 AM, I decided to call it a night.