ConnectorTestUtil Class
Enables developers to write Apex test classes for connectors used by the connected app provisioning solution. This class simulates provisioning for the associated app.
Use this class for connector-based test accelerators. You can invoke it only from within an Apex test.
This example creates an instance of a connected app, gets a value, and checks whether the value is correct. The test is simply a row inserted in the database table.
See Also
The ConnectorTestUtil class has 1 method.
-
createConnectedApp(connectedAppName)
Creates an instance of a connected app to simulate provisioning.
Creates an instance of a connected app to simulate provisioning.
public static ConnectedApplication createConnectedApp(String connectedAppName)
-
connectedAppName:
Type: String
Name of the connected app to test for provisioning.
Type: ConnectedApplication
The instance of the connected app to test for provisioning.