Skip to content

Commit 6c13d9a

Browse files
committed
Fixes for broken integrations test
1 parent c699e97 commit 6c13d9a

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
lines changed

build.gradle

+25-15
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,36 @@ dependencies {
6767
compile "org.grails:grails-core"
6868
compile "org.springframework.boot:spring-boot-starter-actuator"
6969
compile "org.springframework.boot:spring-boot-starter-tomcat"
70-
compile "org.grails:grails-dependencies"
71-
compile 'org.grails:grails-logging'
7270
compile "org.grails:grails-web-boot"
71+
compile "org.grails:grails-logging"
72+
compile "org.grails:grails-plugin-rest"
73+
compile "org.grails:grails-plugin-databinding"
74+
compile "org.grails:grails-plugin-i18n"
75+
compile "org.grails:grails-plugin-services"
76+
compile "org.grails:grails-plugin-url-mappings"
77+
compile "org.grails:grails-plugin-interceptors"
7378
compile "org.grails.plugins:cache"
79+
compile "org.grails.plugins:async"
7480
compile "org.grails.plugins:scaffolding"
81+
compile "org.grails.plugins:events"
7582
compile "org.grails.plugins:hibernate5"
76-
compile "org.hibernate:hibernate-core:5.1.3.Final"
77-
compile "org.hibernate:hibernate-ehcache:5.1.3.Final"
83+
compile "org.hibernate:hibernate-core:5.1.16.Final"
84+
compile "org.hibernate:hibernate-ehcache:5.1.16.Final"
85+
compile "org.grails.plugins:gsp"
7886
console "org.grails:grails-console"
7987
profile "org.grails.profiles:web"
80-
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.14.1"
88+
runtime "org.glassfish.web:el-impl:2.1.2-b03"
89+
runtime "com.h2database:h2"
90+
runtime "org.apache.tomcat:tomcat-jdbc"
91+
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.15.1"
92+
8193
//compile "org.grails.plugins:grails-plugin-converters" // only needed for grails 3.3
82-
testCompile "org.grails:grails-plugin-testing"
83-
testCompile "org.grails.plugins:geb"
84-
testCompile "org.grails:grails-test-mixins:3.3.0"
94+
//testCompile "org.grails:grails-plugin-testing"
8595
testCompile "org.grails:grails-gorm-testing-support"
96+
testCompile "org.grails.plugins:geb"
8697
testCompile "org.grails:grails-web-testing-support"
87-
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
88-
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
89-
98+
testCompile "org.grails:grails-test-mixins:3.3.0"
99+
90100
// Grails plugin dependencies
91101
runtime "org.grails.plugins:ala-bootstrap3:3.0.1", noCache
92102
compile "org.grails.plugins:ala-ws-security-plugin:2.0", noCache
@@ -113,17 +123,17 @@ dependencies {
113123
runtime 'org.hamcrest:hamcrest-core:1.3'
114124
runtime 'org.hamcrest:hamcrest-library:1.3'
115125
runtime 'xalan:xalan:2.7.2'
116-
runtime 'org.apache.httpcomponents:httpcore:4.2.2'
117-
runtime 'org.apache.httpcomponents:httpclient:4.2.2'
118-
runtime 'org.apache.httpcomponents:httpcore:4.2.2'
119-
runtime 'org.apache.httpcomponents:httpclient:4.2.2'
126+
//runtime 'org.apache.httpcomponents:httpcore:4.2.2'
127+
//runtime 'org.apache.httpcomponents:httpclient:4.2.2'
120128
compile 'com.jayway.jsonpath:json-path:0.5.6'
121129
compile 'com.jayway.jsonpath:json-path-assert:0.5.6'
122130
}
123131

124132
bootRun {
125133
jvmArgs('-Dspring.output.ansi.enabled=always')
126134
addResources = true
135+
String springProfilesActive = 'spring.profiles.active'
136+
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
127137
}
128138

129139

grails-app/services/au/org/ala/alerts/DiffService.groovy

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class DiffService {
2121

2222
static transactional = true
2323

24-
def serviceMethod() {}
25-
2624
Boolean hasChangedJsonDiff(QueryResult queryResult) {
2725
if (queryResult.lastResult != null && queryResult.previousResult != null) {
2826
String last = decompressZipped(queryResult.lastResult)
@@ -123,7 +121,7 @@ class DiffService {
123121
records
124122
}
125123

126-
def String decompressZipped(byte[] zipped) {
124+
String decompressZipped(byte[] zipped) {
127125
if (zipped) {
128126
GZIPInputStream input = new GZIPInputStream(new ByteArrayInputStream(zipped))
129127
StringBuffer sb = new StringBuffer()

src/integration-test/groovy/au/org/ala/alerts/DiffServiceSpec.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
package au.org.ala.alerts
1515

1616
import grails.test.mixin.integration.Integration
17-
import grails.transaction.*
17+
import grails.gorm.transactions.*
1818
import org.springframework.beans.factory.annotation.Autowired
1919
import spock.lang.*
2020

0 commit comments

Comments
 (0)