I am fairly new to both unit testing and apex. I am trying to test a method within a class, but i keep getting an error which tells me method does not exist. I have a feeling that perhaps my syntax is incorrect, but in my previous test that i have created where I am doing something very similar. The syntax does in fact work properly which is where I am confused.
In my model ApplicationContactMappingSettingModel
I have a the public method:
public List<FieldMap> getFieldMap(String category){
//code to throw exception in here
}
In my test class
static testMethod void test_get_field_map(){
Application_Contact_Mapping_Settings__c acmSetting = ApplicationMappingTestDataUtils.createOneApplicationContactMappingSetting('string in here', true, 'another string');
ApplicationContactMappingSettingsModel scmSettingsModel = new ApplicationContactMappingSettingsModel();
}
When I try to get the public List from my class by writing this:
//in my model the class of FieldMap has these operators
scmSettingsModel.FieldMap('string','another string', 'another string')
List<FieldMap> category = scmSettingsModel.getFieldMap();
I get the error message telling me the method does not exist Does anyone know the proper way of calling this method? Please let me know if there is more information i can add to make this more helpful, Thanks.