Skip to content

Commit

Permalink
Update to Gradle 2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaley committed Oct 6, 2014
1 parent aec86fb commit b8e6449
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 30 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -81,7 +81,7 @@ subprojects {
}

dependencies {
groovy groovyDependency
compile groovyDependency
testCompile spockDependency
}

Expand Down Expand Up @@ -179,7 +179,7 @@ project(':module:remote-using-lib') {
apply plugin: "groovy"

dependencies {
groovy groovyDependency
compile groovyDependency
compile project(":module:remote-core")
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-bin.zip
Expand Up @@ -16,34 +16,34 @@
package io.remotecontrol.client

import io.remotecontrol.groovy.client.InnerClosureClassDefinitionsFinder
import spock.lang.*
import spock.lang.Specification

class InnerClosureClassDefinitionsFinderSpec extends Specification {

protected createFinder(String[] urls) {
new InnerClosureClassDefinitionsFinder(new URLClassLoader(urls.collect { new URL(it) } as URL[]))
}
def "non existant class path entries are ignored"() {
given:
def finder = createFinder("file:///idontexist.zip", "file:///idontexistdirectory")
when:
finder.find({ 1 }.class)
then:
notThrown Exception
}
def "non file classpath entries are ignored"() {
given:
def finder = createFinder("http://google.com")
when:
finder.find({ 1 }.class)
then:
notThrown Exception
}
protected createFinder(String[] urls) {
new InnerClosureClassDefinitionsFinder(new URLClassLoader(urls.collect { new URL(it) } as URL[]))
}

def "non existant class path entries are ignored"() {
given:
def finder = createFinder("file:///idontexist.zip", "file:///idontexistdirectory")

when:
finder.find({ 1 }.class)

then:
notThrown Exception
}

def "non file classpath entries are ignored"() {
given:
def finder = createFinder("http://google.com")

when:
finder.find({ 1 }.class)

then:
notThrown Exception
}

}
Expand Up @@ -268,6 +268,7 @@ class SmokeTests extends GroovyTestCase {
/**
* Variation of above, but yields a different error.
*/
@SuppressWarnings("EmptyClass")
static class Inner {}

void testCannotInstantiateClassesNotInTheApp() {
Expand Down

0 comments on commit b8e6449

Please sign in to comment.