Sample Components with Dependencies:
Sample Apex Controller:
public class ExampleController {
public static String test() {
System.debug( 'Testing' );
return 'Testing';
}
}
Sample Apex Test Class:
@isTest
public class ExampleControllerTest {
public String str = ExampleController.test();
}
Sample Visualforce Page:
<apex:page controller="ExampleController">
</apex:page>
Sample Tooling API Query:
SELECT MetadataComponentId, MetadataComponentType, MetadataComponentName
FROM MetadataComponentDependency
WHERE RefMetadataComponentId = '01p3t00000FeKQYAA3'