Skip to main content
added 20 characters in body
Source Link
Reshma
  • 4.1k
  • 7
  • 29
  • 43

Private methods are not visible in Test Classes. Hence use @TestVisible annotation so that the method is accessible for running tests only. Use as shown below.

@TestVisible private static void processActionPlan(Workbook workbook) {

your code

}

@TestVisible private static void processActionPlan(Workbook workbook) {

your code 

}

Refer this link TestVisible Annotation for further details.

Private methods are not visible in Test Classes. Hence use @TestVisible annotation so that the method is accessible for running tests only. Use as shown below.

@TestVisible private static void processActionPlan(Workbook workbook) {

your code

}

Refer this link TestVisible Annotation for further details.

Private methods are not visible in Test Classes. Hence use @TestVisible annotation so that the method is accessible for running tests only. Use as shown below.

@TestVisible private static void processActionPlan(Workbook workbook) {

your code 

}

Refer this link TestVisible Annotation for further details.

Source Link
Anant
  • 148
  • 10

Private methods are not visible in Test Classes. Hence use @TestVisible annotation so that the method is accessible for running tests only. Use as shown below.

@TestVisible private static void processActionPlan(Workbook workbook) {

your code

}

Refer this link TestVisible Annotation for further details.