You need to sign in to do that
Don't have an account?
S.Mac-Intosh
Apex code (Average test coverage 0%)
How can i get the 'Average test coverage' of the following code to 75%? It is 0% ATM. My code:
Public with sharing class InsertClass{
Public string InsertTestObject{
Get{
TestObject__c Record = [SELECT Testobject__c.name FROM Testobject__c WHERE Id ='a0Cb0000000Tvw5'];
TestObject__c newRecord = Record.clone(false, true);
System.debug('Naam van testobject die wordt gekopieerd ' + newRecord );
newRecord.name = Record.Name + ' CLONE';
System.debug('Naam van testobject die wordt geinsert ' + newRecord.name );
insert newRecord;
return newRecord.id ;
}
}