Следующий тест не пройден, и я вижу в журналах, что просто не создается контекст приложения.Но чего мне здесь не хватает?
package my.dwh.etl
import my.dwh.DwhApplication
import groovy.util.logging.Log
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.ApplicationContext
import spock.lang.Specification
@Log
@SpringBootTest(classes = DwhApplication.class)
class ETL_IT extends Specification {
@Autowired
ApplicationContext context
def "test integration of loading StackedWithHeaderAndAllTypesSource and storing into h2"() {
given:
def a
when:
a = 1
then:
context != null
}
}