Where are located SensorContextTester and TestInputFileBuilder?

Hi,

I’m updating a custom language plugin for SonarQube to be compatible with SonarQube 2026.1 LTA and Community.

I have a test for the custom plugin which uses

  • SensorContextTester class which was available for the SQ 2025 LTA under sonar-plugin-api-impl artifact and imported using org.sonar.api.batch.sensor.internal.SensorContextTester class path.
  • TestInputFileBuilder class was available for the SQ 2025 LTA under sonar-plugin-api-impl artifact and imported using org.sonar.api.batch.sensor.internal.SensorContextTester class path.

Have these been relocated somewhere else or removed ? If removed, have you something else to replace them ?

Should I add a specific dependency in pom.xml to be able to find them? Actually I’m using only

        <dependency>
            <groupId>org.sonarsource.api.plugin</groupId>
            <artifactId>sonar-plugin-api</artifactId>
            <version>13.4.2.4284</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.sonarsource.api.plugin</groupId>
            <artifactId>sonar-plugin-api-test-fixtures</artifactId>
            <version>13.4.2.4284</version>
            <scope>test</scope>
        </dependency>

and removed the dependency on sonar-plugin-api-impl.

Thanks in advance for your feedback.

Best regards

Monika