jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Griffon
  • GRIFFON-452

Fest Spock Integration Tests contianing Closure definitions fail with java.lang.IllegalAccessError

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 0.9.4
  • Fix Version/s: 0.9.5-rc1
  • Component/s: Plug-ins
  • Labels:
    None
  • Environment:
    Linux, fest plugin 0.8

Description

the command griffon create-fest-spec creates a spock test class that extends the class FestSpec.If this test class then contains a closure definition the test will error with an IllegalAccessError.

This can apparently be resolved by extending FestSwingTestCase rather than FestSpec. If this is indeed the case then the template used for create-fest-spec should be updated to extend FestSwingTestCase

This appears to be a similar issue to Griffon-435

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andres Almiray added a comment - 07/Feb/12 2:05 PM

Cannot reproduce with Griffon 0.9.5, Fest 0.8 and Spock 0.5.1.

Sample spec:

package sample

import griffon.fest.*
import org.fest.swing.fixture.*

class SampleSpec extends FestSpec {
    def 'my first FEST spec'() {
        given:
            def cls = { it }
        when:
            def result = cls('foo')
        then:
            window
            result == 'foo'
    }
}
Show
Andres Almiray added a comment - 07/Feb/12 2:05 PM Cannot reproduce with Griffon 0.9.5, Fest 0.8 and Spock 0.5.1. Sample spec:
package sample

import griffon.fest.*
import org.fest.swing.fixture.*

class SampleSpec extends FestSpec {
    def 'my first FEST spec'() {
        given:
            def cls = { it }
        when:
            def result = cls('foo')
        then:
            window
            result == 'foo'
    }
}

People

  • Assignee:
    Andres Almiray
    Reporter:
    Stephen Nesbitt
Vote (0)
Watch (0)

Dates

  • Created:
    07/Feb/12 12:35 PM
    Updated:
    09/Mar/12 9:30 AM
    Resolved:
    07/Feb/12 2:05 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.