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 171898

Summary: MessageBoardTest.java uses wrong context-root
Product: webservices Reporter: Vitezslav Stejskal <vstejskal>
Component: RESTAssignee: Milan Kuchtiak <mkuchtiak>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vitezslav Stejskal 2009-09-10 10:37:15 UTC
Product Version: NetBeans IDE Dev (Build 200909081533)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)
Userdir: /Users/vita/.netbeans/dev

1. Created new project from Samples -> Web Services -> REST: Message Board
2. Built, deployed and started the project
3. Client showed in the browser and worked ok
4. Then I ran tests (eg. project's popup menu -> Test) => all tests failed

When looking in enterprise.rest.test.MessageBoardTest.java I can see that it's using "message-board-war" as the context
root of the webapp running the webservice. The context root in the example project is just "message-board". After
changing this in MessageBoardTest's constructor all tests passed.
Comment 1 Milan Kuchtiak 2009-09-10 11:49:15 UTC
http://hg.netbeans.org/main/rev/1895192a00bc
Comment 2 Quality Engineering 2009-09-18 22:40:00 UTC
Integrated into 'main-golden', will be available in build *200909181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1895192a00bc
User: mkuchtiak@netbeans.org
Log: #171898: fixing context-path