0

To test the correction of extended repository methods, I created some unit tests. When I run those unit tests in Idea, all have passed. When I run the project build command with Gradle, all test cases fail with the following error message

 java.lang.NoSuchMethodError at OriginTrackedYamlLoader.java:76

I found the OriginTrackedYamlLoader.java is in the Gradle library path. The following is my unit test class structure:

@RunWith(SpringRunner.class)
@DataJpaTest
public class FooExtRepositoryTests {
  ...
    @Autowired
    private FooExtRepository fooRepository;
 ...
}

The error message indicates some sort of test configuration is missing. How to resolve this issue?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.