Bug 443581 - Eclipse is unable to jump to Spock tests when method name contains spaces.
Summary: Eclipse is unable to jump to Spock tests when method name contains spaces.
Status: CLOSED DUPLICATE of bug 343129
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2014-09-09 06:01 EDT by Mime Util CLA
Modified: 2014-09-09 11:25 EDT (History)
1 user (show)

See Also:


Attachments
Error message when clicking on "Test Minimum". (12.57 KB, image/png)
2014-09-09 06:01 EDT, Mime Util CLA
no flags Details
JUnit View for the two test methods. (5.45 KB, image/png)
2014-09-09 06:03 EDT, Mime Util CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mime Util CLA 2014-09-09 06:01:06 EDT
I'm running tests using the Spock framework. When names of the functions contain spaces (as they usually do), clicking on the function name in the JUnit-View results in the error message:

Method 'Test' not found. Opening the test class.

When I run the following tests, clicking on "TestMaximum" in in JUnit View works, while clicking on "Test Minimum" does not.

-------------------------------------------------------

package tld.domain.test

import spock.lang.Specification

class TestSpockTests extends Specification {
	def "TestMaximum"() {
		when:
		def x = Math.max(1, 2)
		
		then:
		x == 2
	} 
	
	def "Test Minimum"() {
		when:
		def x = Math.min(1, 2)
		
		then:
		x == 1
	} 
}
Comment 1 Mime Util CLA 2014-09-09 06:01:56 EDT
Created attachment 246864 [details]
Error message when clicking on "Test Minimum".
Comment 2 Mime Util CLA 2014-09-09 06:03:06 EDT
Created attachment 246865 [details]
JUnit View for the two test methods.
Comment 3 Noopur Gupta CLA 2014-09-09 11:25:02 EDT

*** This bug has been marked as a duplicate of bug 343129 ***