public with sharing class GroupList {
public string test;
public string gettest(){
return 'test';
}
public void settest(string new_value){
this.test = new_value;
}
}
Test class
@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'm working in the IDE and trying to write the simplest possible test
neither my class nor my test have been saved to the server
since it won't do that until i have the test
and the test has an error i can't figure out"
Save it to the server, i'm amazed it is actually trying to run your test code without it being saved to the server. You can't execute code locally, it uses the API to communicate with the server to run your code, and get back the results as far as I know.
Hi,
Your code is perfect.
i tried to execute it and found no problem.
Test class
"i'm working in the IDE and trying to write the simplest possible test
neither my class nor my test have been saved to the server
since it won't do that until i have the test
and the test has an error i can't figure out"
Save it to the server, i'm amazed it is actually trying to run your test code without it being saved to the server. You can't execute code locally, it uses the API to communicate with the server to run your code, and get back the results as far as I know.