Search code examples
geodespring-data-gemfire

Going through Spring Test Data Geode but @EnableGemFireMockObjects annotation is not found


I spent a long time trying to run the example tests from here and here.

The @EnableGemFireMockObjects annotation cannot be found and neither can

import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects;

The example tests don't run. Presumably this is missing a Gradle dependency but I can't find a Gradle example in the documentation.


Solution

  • Per Javalibs I needed to add

    implementation 'org.springframework.data:spring-data-geode-test:0.0.11.RELEASE'
    

    to gradle.build dependencies group.