You need to sign in to do that
Don't have an account?
problem writing test
i'm trying to write the simplest possible test
my class
public class GroupList
{
public string test;
public string gettest(){
return 'test';
}
public void settest(string new_value){
this.test = new_value;
}
}
my test
@isTest
public with sharing class testGroupList {
static testMethod void test_value_Test() {
GroupList g = new GroupList();
g.settest('test');
string tv = g.gettest();
System.assertEquals('test',tv);
}
}
i get "method does not exist or incorrect signature on the "g.settest" line... can't figure out what i'm doing wrong
thanks
ken tyler
Hi,
Your code is perfect.
i tried to execute it and found no problem.
Test class
All Answers
Hi,
Your code is perfect.
i tried to execute it and found no problem.
Test class
I too copied and pasted your exact code, executed without any errors with a code coverage of 100%.