InboundConnectorContextBuilder does not exist

Hi there, in the Camunda Academy I want to do the ‘Camunda 8 - Create Custom Inbound Connectors’ course. Running the test gives me

java: cannot find symbolsymbol:   variable InboundConnectorContextBuilderlocation: class io.camunda.connector.inbound.FileWatchConnectorTest

I couldn’t find it anywhere. Is there a new Builder now or a new Testing framework?

Hi @pme123! :waving_hand:

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:

  1. Outdated Course Material: The Camunda Academy course might be using outdated examples that reference a non-existent API
  2. API Changes: The testing framework for inbound connectors may have changed since the course was created
  3. Missing Dependencies: There might be missing test dependencies in your project setup

Recommended Solutions:

  1. Check Course Updates: Verify if there are any updates or errata for the Academy course
  2. Use Integration Testing: Focus on integration testing approaches as shown in the official documentation
  3. 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.

References: