You need to sign in to do that
Don't have an account?
Sahba Shabrokh 3
Comment out this apex class
Trying to comment out this entire class getting this issue: Unexpected token '<EOF>'.
Any Ideas?
Any Ideas?
/* private class TestUpdateAccountTeamMembers { static testMethod void validateAccountTeamMembers() { Profile p = [SELECT Id FROM Profile WHERE Name='Standard User']; User u = new User(Alias = 'standt', Email='standarduser@testorg.com', EmailEncodingKey='UTF-8', LastName='Testing', LanguageLocaleKey='en_US', LocaleSidKey='en_US', ProfileId = p.Id, TimeZoneSidKey='America/Los_Angeles', UserName='testUserForTestUpdateAccountTeamMembers@testorg.com'); insert u; User u2 = new User(Alias = 'standt2', Email='standarduser2@testorg.com', EmailEncodingKey='UTF-8', LastName='Testing2', LanguageLocaleKey='en_US', LocaleSidKey='en_US', ProfileId = p.Id, TimeZoneSidKey='America/Los_Angeles', UserName='testUserForTestUpdateAccountTeamMembers2@testorg.com'); insert u2; Account a = [SELECT Id, Name, Account_Manager_1__c FROM Account LIMIT 1]; Account a2 = [SELECT Id, Name, Account_Manager_1__c FROM Account where Id != :a.id LIMIT 1]; a.Account_Manager_1__c = u2.Id; a.Website_Currency__c = 'GBP'; update a; a2.Account_Manager_1__c = u.Id; a2.Account_Manager_1__c = null; }*/ }
All Answers