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 211718

Summary: Maven web project broken when URLDisplayer registred in MockServices
Product: javaee Reporter: Jiri Skrivanek <jskrivanek>
Component: MavenAssignee: Martin Janicek <mjanicek>
Status: VERIFIED WORKSFORME    
Severity: normal CC: mmirilovic, pjiricka
Priority: P2 Keywords: T9Y
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screen shot from tests.

Description Jiri Skrivanek 2012-04-25 14:20:08 UTC
Created attachment 118751 [details]
Screen shot from tests.

Maven web project is somehow screwed up when custom URLDisplayer is registered in tests. Concretely when this is called

       MockServices.setServices(TestURLDisplayer.class);

in this class

web.kit\test\qa-functional\src\org\netbeans\test\web\WebProjectValidation.java

the Source Packages node disappears, Run category in project properties shows nothing and when you run project it changes icon (see screen shot) and war is not deployed. To reproduce:

ant -f web.kit -Dtest.includes=org/netbeans/test/web/MavenWebProjectValidation.java -Dtest.type=qa-functional test-single -Dtest-qa-functional-sys-prop.glassfish.home=/tmp/glassfish
Comment 1 Jiri Skrivanek 2012-05-02 09:29:03 UTC
Works for me in NetBeans IDE Dev (Build 20120502-2d7d60ce379d).