public class EmptyClass {
public static boolean recCheck = false;
}
Your test class should be like below:
@isTest
public class Test_EmptyClass {
static testMethod void test1() {
Test.StartTest();
EmptyClass emt = new EmptyClass();
Test.StopTest();
}
}
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
public class EmptyClass {
public static boolean recCheck = false;
}
Your test class should be like below:
@isTest
public class Test_EmptyClass {
static testMethod void test1() {
Test.StartTest();
EmptyClass emt = new EmptyClass();
Test.StopTest();
}
}
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Hi Chandu, You only need to create a Object of Constant class.
@isTest public class Test_Constant { @isTest public static void Test_Constant_method() { Test.StartTest(); Constant Con = new Constant(); Test.StopTest(); } }
- Please use the below test class for your problem : -
@isTest public class singleParameterTestClass { public static testMethod void testschedule() { Test.StartTest(); Constant obj = new Constant(); Test.stopTest(); } }
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Greetings to you!
Apex class:
Your test class should be like below:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
Apex class:
Your test class should be like below:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
You only need to create a Object of Constant class.
@isTest
public class Test_Constant {
@isTest
public static void Test_Constant_method() {
Test.StartTest();
Constant Con = new Constant();
Test.StopTest();
}
}
Greetings to you!
- Please use the below test class for your problem : -
@isTest
public class singleParameterTestClass {
public static testMethod void testschedule() {
Test.StartTest();
Constant obj = new Constant();
Test.stopTest();
}
}
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.