I have a problem with Gitlab CI/CD. I am making a Java project with Gradle. When I run my tests locally, they pass. However, when I push to my git repository, the test pipeline fails. Here is the screenshot of the error it gives me: Gitlab pipeline result
This is my local test. I am using Mockito testing in SpringBoot.
package com.its.backend;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.when;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import com.its.backend.entities.User;
import com.its.backend.repositories.UserRepository;
import org.junit.jupiter.api.Test; …Run Code Online (Sandbox Code Playgroud)