Код: Выделить всё
09:17:00.353 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.xpfibre.daf.CommuneControllerApiTest]: CommuneControllerApiTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
09:17:00.505 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.xpfibre.daf.AdafApplication for test class com.xpfibre.daf.CommuneControllerApiTest
Код: Выделить всё
@SpringBootTest
@ActiveProfiles(value = "junit")
public class CommuneControllerApiTest {
@ParameterizedTest
@CsvFileSource(resources = "CommunesTestData.csv",numLinesToSkip = 1 )
void creation (String codeInsee, String nom, String zc, String quadriOi, int testNumero, boolean testResultatAttendu, int testNombreAttendu) throws Exception {
// Some tests...
}
}
Код: Выделить всё
org.springframework.boot
spring-boot-starter-parent
3.3.5
org.springframework.boot
spring-boot-starter-test
test
org.junit.jupiter
junit-jupiter-params
Если нет, каковы возможные обходные пути?Спасибо
Подробнее здесь: https://stackoverflow.com/questions/792 ... erizedtest
Мобильная версия