function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jerrod Knapp 11Jerrod Knapp 11 

test class for DTO

I need some help creating a test class for the following code:

global class ResourceDTO {
                       
    public string id {get; set;}             
    public string name {get; set;}
    public string documenttype {get; set;}
    public string documentcategory {get; set;}
    public string filetype {get; set;}                       
    public string content {get; set;}
    public List<string> permissions {get; set;}
    public string publishdate {get; set;}
    public string lastmodifieddate {get; set;}
}

Really appreciate any help you kind folks can offer.

Thanks!
​Jerrod.
Hemant_SoniHemant_Soni
Hi,
Please try below code.
@isTest
public class ResourceDTOTest{
  static testMethod void validateResourceDTO() {
     ResourceDTO oResource = new ResourceDTO();
  }
}
Please let me know if this is helpful.
Thanks