Код: Выделить всё
@ExtendWith(SpringExtension.class)
@ActiveProfiles("test")
@SpringBootTest(properties = "spring.main.allow-bean-definition-overriding=true", classes = {
PricingApplication.class })
//@DataMongoTest()
//@SpringBootTest
//@RunWith(MockitoJUnitRunner.Silent.class)
public class PNPARPriceControllerTest
Код: Выделить всё
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kieHelper': Unsatisfied dependency expressed through field 'promoUsageRepository'
Код: Выделить всё
public interface PromoUsageRepository extends MongoRepository,PromoUsageRepositoryCustom {
}
Код: Выделить всё
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'version' defined in class path resource [de/flapdoodle/embed/mongo/spring/autoconfigure/EmbeddedMongoAutoConfiguration.class]:
Код: Выделить всё
Caused by: java.lang.IllegalStateException: Set the de.flapdoodle.mongodb.embedded.version property or define your own IFeatureAwareVersion bean to use embedded MongoDB
Код: Выделить всё
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring3x:4.16.1'
Подробнее здесь: https://stackoverflow.com/questions/793 ... g-springfr