This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228502

Summary: Geb DSL and Spock DSL spec methods show up as their DSL linked names instead of defined method names
Product: groovy Reporter: _ wadechandler <wadechandler>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ wadechandler 2013-04-11 23:35:48 UTC
For starters see http://www.gebish.org. You will find a popular Groovy like web testing framework. Too, they have some extra wrappers around Spock which is a popular Groovy like test specification language. If one extends the class GebReportingSpec, then they define specifications like this:

class MyPageSpec extends ScrippsReportingSpec {
    
    def "ensure header value"() {
        given:
        //do something
        
        when:
        //do something
        
        then:
        //do some assertion checks
    }
    
    def "ensure tab values"() {
        given:
        //do something
        
        when:
        //do something
        
        then:
        //do some assertion checks
    }
}

In the navigator in NetBeans they will show up as something like "$spock_feature_3_1" and "$spock_feature_3_2". In Eclipse navigator they show up like "ensure tab values", and the Eclipse editor, as far as I know, doesn't know anything specific about this geb/spock combo, but understands the general pattern and does something more useful. It seems NetBeans should do this too for such Groovy things.