Closed sadasivaiahgoli closed 6 years ago
Please provide an example that reproduces the issue.
Also this is the third report you have posted on the same issue and the quality of the reports is appalling. I will close the others and leave this open but please stop spamming the issue tracker and try to improve the quality of your reports.
Closing due to lack of feedback
Grais version : 3.2.9 Gorm Version : 6.1.2.Release Gorm Mongo DB Linux mint 18 In testing I got Bean Instantiation Exception of All controller and dependent services. Event Test Class Also got Bean Instantiation Exception. Even Mongodb Database not set in the test environment. But in bootRun it worked good.
import grails.test.mixin.integration.Integration import grails.transaction. import spock.lang. import grails.plugins.rest.client.RestBuilder import grails.plugins.rest.client.RestResponse import org.springframework.beans.factory.annotation.Value import com.symfore.core.TransactionService import org.springframework.util.LinkedMultiValueMap import org.springframework.util.MultiValueMap import org.springframework.beans.factory.annotation.Autowired import org.springframework.stereotype.Component; import com.symfore.core.; import com.symfore.util.; import grails.test.mixin.TestFor import grails.test.mixin.Mock
@Integration @Rollback
class TransactionControllerSpec extends Specification { @Value('${local.server.port}') Integer serverPort @Autowired TransactionService transactionService
} All test classes got bean instantaiton exception what is the reason.