Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fedotxxl/5ada0a9a9b1e8e3b75da to your computer and use it in GitHub Desktop.
Save fedotxxl/5ada0a9a9b1e8e3b75da to your computer and use it in GitHub Desktop.
package com.devadmin.util.metrics
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.ImportResource
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.transaction.TransactionConfiguration
import org.springframework.transaction.annotation.Transactional
import spock.lang.Specification
@Configuration
@Transactional
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)
@ImportResource(["classpath:applicationContext.test.xml"])
@ContextConfiguration(classes = AbstractIntegrationSpec)
abstract class AbstractIntegrationSpec extends Specification {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment