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
Fan@EXCFan@EXC 

Need help on test class

I have an interface/class to expose data as follows:

 

global class ExposedData

{

     webservice String Id;

     webservice Double SomeField;

}

 

Now i'm told that the code wasn't covered.  How to write test class to cover the code?

 

 

RoyGiladRoyGilad
It should be some thing like:

@isTest
private class Test_ExposedData {
ExposedData a = new ExposedData();
a.id = '1';
a.SomeField = 'someData'
}
Fan@EXCFan@EXC
I had the code in my test class. Why is the code not covered?