developer created this Apex trigger that calls MyClass .myStaticMethod:
trigger myTrigger on Contact(before insert) ( MyClass.myStaticMethod(trigger.new, trigger.oldMap); }
The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exist?
Select an option, then click Submit answer.
-
○
The deployment fails because the Apex trigger has no code coverage.
-
○
The deployment fails because no assertions were made in the test method.
-
○
The deployment passes because the Apex code has required (>75%) code coverage.
-
○
The deployment passes because both classes and the trigger were included in the deployment.