Skip to content
This repository was archived by the owner on May 31, 2023. It is now read-only.

Commit 2b0bdab

Browse files
committed
Upgrade to Android cache fix plugin 0.2.0
1 parent f3b44f4 commit 2b0bdab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/groovy/org/gradle/android/test/RelocationTest.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RelocationTest extends Specification {
2323

2424
static final String DEFAULT_GRADLE_VERSION = "4.4-rc-3"
2525
static final String DEFAULT_ANDROID_VERSION = "3.1.0-alpha04"
26-
static final String DEFAULT_ANDROID_CACHE_FIX_VERSION = "0.1.11"
26+
static final String DEFAULT_ANDROID_CACHE_FIX_VERSION = "0.2.0"
2727

2828
@Rule TemporaryFolder temporaryFolder
2929
File cacheDir
@@ -158,13 +158,13 @@ class RelocationTest extends Specification {
158158
}
159159

160160
boolean verify(BuildResult result) {
161-
println "Expecting ${outcomes.values().count(FROM_CACHE)} tasks out of ${outcomes.size()} to be cached"
161+
println "> Expecting ${outcomes.values().count(FROM_CACHE)} tasks out of ${outcomes.size()} to be cached"
162162

163163
def outcomesWithMatchingTasks = outcomes.findAll { result.task(it.key) }
164164
def hasMatchingTasks = outcomesWithMatchingTasks.size() == outcomes.size() && outcomesWithMatchingTasks.size() == result.tasks.size()
165165
if (!hasMatchingTasks) {
166-
println "> Tasks missing: " + (outcomes.keySet() - outcomesWithMatchingTasks.keySet())
167-
println "> Tasks in surplus: " + (result.tasks*.path - outcomesWithMatchingTasks.keySet())
166+
println "> Tasks missing: " + (outcomes.findAll { !outcomesWithMatchingTasks.keySet().contains(it.key) })
167+
println "> Tasks in surplus: " + (result.tasks.findAll { !outcomesWithMatchingTasks.keySet().contains(it.path) })
168168
}
169169

170170
boolean allOutcomesMatched = true

0 commit comments

Comments
 (0)