Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created January 23, 2023 03:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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