You need to sign in to do that
Don't have an account?

How to write test class for inner class?!
Hi all,
I have a test class something like this.
global class Maincontroller()
{
global virtual class summary extends summary1
{
global virtual override void startPage()
{
//Lines of code
}
}
}
Can anyone please tell me how to cover the startPage method in my test class.Since this method is inside the inner class, I have no idea how to write the test class for that.Any help would be greatly appreciated.
I have a test class something like this.
global class Maincontroller()
{
global virtual class summary extends summary1
{
global virtual override void startPage()
{
//Lines of code
}
}
}
Can anyone please tell me how to cover the startPage method in my test class.Since this method is inside the inner class, I have no idea how to write the test class for that.Any help would be greatly appreciated.
Try this - related Link-http://www.infallibletechie.com/2014/07/how-to-cover-inner-class-in-test-class.html
Thanks
Rupal kumar
http://mirketa.com
Firstly correct your code, a class never have any braces.
Following code will be helpful to cover inner class:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi