I can help you with this issue. Based on my research, it appears that InboundConnectorContextBuilder does not exist in the current Camunda 8 Connector SDK.
Current State of Inbound Connector Testing
The Camunda 8 Connector SDK currently provides testing support primarily for outbound connectors through the OutboundConnectorContextBuilder. For inbound connectors, the testing approach is different:
What’s Available:
Integration Testing: You can test inbound connectors by invoking them during integration tests using the connector’s endpoint
Direct Unit Testing: Test individual components of your inbound connector logic directly
Integration Testing Example:
@Test
void shouldInvokeConnector() {
// given: a process instance waiting at a connector event
// when
final String inboundConnectorAddress =
processTestContext.getConnectorsAddress() + "/inbound/" + CONNECTOR_ID;
// invoke the connector address, for example, via HTTP request
// then: verify that the connector event is completed
}
Possible Reasons for the Course Issue:
Outdated Course Material: The Camunda Academy course might be using outdated examples that reference a non-existent API
API Changes: The testing framework for inbound connectors may have changed since the course was created
Missing Dependencies: There might be missing test dependencies in your project setup
Recommended Solutions:
Check Course Updates: Verify if there are any updates or errata for the Academy course
Use Integration Testing: Focus on integration testing approaches as shown in the official documentation
Direct Unit Testing: Test your connector’s business logic directly without the context builder
Next Steps:
Could you share:
Which version of Camunda 8 you’re using?
The complete test class code you’re working with?
Your project’s dependencies (pom.xml or build.gradle)?
This will help me provide more specific guidance for your FileWatchConnector test setup.