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 257962 - Netbeans cannot resolve domain classes in grails tests
Summary: Netbeans cannot resolve domain classes in grails tests
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: bruno.flavio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-12 12:45 UTC by ejaz_ahmed
Modified: 2016-02-12 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans cannot resolve domain class (118.48 KB, image/png)
2016-02-12 12:45 UTC, ejaz_ahmed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ejaz_ahmed 2016-02-12 12:45:50 UTC
Created attachment 158476 [details]
Netbeans cannot resolve domain class

Netbeans cannot resolve domain classes in Grails tests. I have following test

void "test deleting deliverySlot deletes deliverySchedule"() {
            given:
            def dsl = new DeliverySlot(name: "slot").save(flush: true)
            def rgn = new Region(name: "region").save(flush: true)
            def ds = new DeliverySchedule(name: "schedule")
            ds.region = rgn
            ds.deliverySlot = dsl
            ds.save(flush: true)

            when:
            DeliverySlot.findById(dsl.id).delete(flush: true)

            then:
            !DeliverySlot.exists(dsl.id)
            !DeliverySchedule.exists(ds.id)       
        }


The application is available in github and can be fetched with this link https://github.com/ejaz-ahmed/grails3-cascade-delete.

Netbeans screenshot showing this error is also attached.