0

I'm having problems with my wrapper class, it is not being covered by my test class.

here is my wrapper class

public class DocuSignEnvelopeWrapper { public class Recipients { public List signers; public List carbonCopies; }

public class Documents {
    public String name;
    public String fileExtension;
    public String documentId;
    public Blob documentBase64;
}

public class Signers {
    public String name;
    public String email;
    public String recipientId;
    public String routingOrder;
}

public class CarbonCopies {
    public String name;
    public String email;
    public String recipientId;
    public String routingOrder;
    public String requiredIdLookup;
}

public String status;
public String emailSubject;
public String emailBlurb;
public List<Documents> documents;
public Recipients recipients;

}

and here is my test class I'm just trying to cover at least 1% first but it's still not working @isTest public class TestDocuSignWrapper {

static testmEthod void myTestUnit1(){
    DocuSignEnvelopeWrapper docuSignWrapper = new DocusignEnvelopeWrapper();
    docuSignWrapper.status = 'sent';    
    docuSignWrapper.emailSubject = 'test';
    docuSignWrapper.emailBlurb = 'test';
}

}

it still 0% though... why is this happening? thanks in advance :)

0

Your wrapper class contains no executable lines of code and cannot be covered.

Only executable lines of code are eligible to be counted for code coverage. Variable declarations that don't contain a property declaration or assignment are not executable.

| improve this answer | |
  • thanks David Reed! I was able to deploy it :D – MENARDO LAGMAY Dec 16 '19 at 2:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.