You need to sign in to do that
Don't have an account?
Debaranjan Ghosh
I tried this from Schema Browser with below Code and System did not allow me to Change API Name of the field (Error given below)
Can you please explain what I am missing here?
@isTest
private class AddressTest {
static TestMethod void AddressTest_UnitTest(){
Test.startTest();
Address__c account = new Address__c(Address_Line_1__c = '100');
insert account;
Test.stopTest();
}
}
Cannot rename custom field referenced in Apex class or trigger: <a href="/01p6F00000R8nDn">AddressTest</a>
PD1 Question 32
Question 32 ( Topic 1 ) | |||||||
Using the Schema Builder, a developer tries to change the API name of a field that is | |||||||
referenced in an Apex test class. | |||||||
What is the end result? | |||||||
• A. The API name is not changed and there are no other impacts. | |||||||
• B. The API name of the field and the reference in the test class is changed. | |||||||
• C. The API name of the field is changed, and a warning is issued to update the class. | |||||||
• D. The API name of the field and the reference in the test class is updated. | |||||||
Answer : C |
I tried this from Schema Browser with below Code and System did not allow me to Change API Name of the field (Error given below)
Can you please explain what I am missing here?
@isTest
private class AddressTest {
static TestMethod void AddressTest_UnitTest(){
Test.startTest();
Address__c account = new Address__c(Address_Line_1__c = '100');
insert account;
Test.stopTest();
}
}
Cannot rename custom field referenced in Apex class or trigger: <a href="/01p6F00000R8nDn">AddressTest</a>