Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c6db4f73a2
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.491 kb
package org.codehaus.groovy.grails.plugins.converters.api
import spock.lang.Specification
class ConvertersApiSpec extends Specification {
void 'Test converting an array to an interface type'() {
given:
def converter = new ConvertersApi()
when:
def someArray = ['One', 'Two', 'One', 'Three'] as String[]
def someSet = converter.asType(someArray, Set)
then:
someSet instanceof Set
}
}
Jump to Line
Something went wrong with that request. Please try again.