Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created January 23, 2023 03:20
Show Gist options
  • Save arun12209/a75ccc1ef28bcb7a37778bef54d8441a to your computer and use it in GitHub Desktop.
Save arun12209/a75ccc1ef28bcb7a37778bef54d8441a to your computer and use it in GitHub Desktop.
public class MyClass {
@testVisible private static Integer myMethod() {
return 5;
}
}
@isTest
public class MyTestClass {
static testMethod void testMyMethod() {
Integer result = MyClass.myMethod();
System.assertEquals(5, result);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment