You need to sign in to do that
Don't have an account?
Dave Stevenson
Constructor not defined: [ParseSystemOverview].(String)
I have read lots of posts about this error message, and cannot figure this out. Here is the relevant of my class, including the constructors:
And here is the client code:
The compiler error 'Constructor not defined: [ParseSystemOverview].(String)' occurs on line 4 o fmy unit test. Help please. And thanks.
global class ParseSystemOverview { private String testContent; global void ParseSystemOverview() { } global void ParseSystemOverview(String tstContent) { // For use by unit tests - pass in sample content testContent = tstContent; } }
And here is the client code:
@isTest private class ParseSystemOverviewTest { static testMethod void apiUsageTest() { String testPageContent = 'Hello there.'; ParseSystemOverview parse = new ParseSystemOverview(testPageContent); } }
The compiler error 'Constructor not defined: [ParseSystemOverview].(String)' occurs on line 4 o fmy unit test. Help please. And thanks.
Regards
Alain
All Answers
Regards
Alain