GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-652

Problems with test methods that have special characters in their name

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0Release
    • Fix Version/s: None
    • Labels:
    • Environment:
      Mac OS 10.6.2
      Eclipse Java EE 3.5 SR1
      Groovy-Eclipse Feature 2.0.1.20100219-1700-e35 org.codehaus.groovy.eclipse.feature.feature.group
    • Number of attachments :
      0

      Description

      The following problems exist in the JUnit view (NOT the source editor):

      1. The name of a method that contains parentheses is truncated. For example, "with(parens)" will be displayed as "with".
      2. When a method that contains parentheses is executed by selecting "Run" from the context menu, the following error occurs: "The input type of the launch configuration does not exist"
      3. When a method that contains parentheses is double-clicked, the following error occurs: "Test class not found in selected project"
      4. When a method that contains spaces, say "with space", is double-clicked, the following error occurs: "Method 'with' not found. Opening the test class." (Note how the name is again truncated.)

      Behavior is the same for JUnit4 and Spock tests. Here is the test code I used:

      import org.junit.Test
      
      class MethodNamesTest {
      	@Test
      	void standard() {}
      	
      	@Test
      	void "stringy"() {}
      	
      	@Test
      	void "with space"() {}
      	
      	@Test
      	void "with(parens)"() {}
      }
      
      import spock.lang.*
      
      class MethodNamesSpec extends Specification {
      	def standard() {
      		expect: true
      	}
      	
      	def "stringy"() {
      		expect: true
      	}
      	
      	def "with space"() {
      		expect: true
      	}
      	
      	def "with(parens)"() {
      		expect: true
      	}
      }
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Peter Niederwieser
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: