Java Mailing List Archive

http://www.gg3721.com/

Home » eclipse-plugin-dev.groovy »

Re: [groovy-eclipse-plugin-dev] [Fwd: [groovy-user] Can someone
 repost this on the groovy eclipse plugin list]

Andrew Eisenberg

2009-12-29

Replies: Find Java Web Hosting

Author LoginPost Reply
I have not been able to reproduce your problem, but it could be that
you are defining a script in a file that has a class of the same name.
For example, the following is an error (defined in TestClass.groovy):

class TestClass extends GroovyTestCase {

}
def x = "nothin"

Does this describe what you are seeing?

If you are seeing something different, please raise an issue on
http://jira.codehaus.org/browse/GRECLIPSE and attach a failing
project.

On Tue, Dec 29, 2009 at 6:41 AM, Jochen Theodorou <blackdrag@(protected):
>
>
> -------- Original Message --------
> Subject: [groovy-user] Can someone repost this on the groovy eclipse plugin
> list
> Date: Tue, 29 Dec 2009 09:14:25 -0500
> From: Roger Studner <rstudner@(protected)>
> Reply-To: user@(protected)
> To: user@(protected)
>
> I can't subscribe to the list, so...:
>
>
> It seems that *any time* I create a Groovy Test Case, it tells me that =
> I've made a duplicate class.
>
> So if I have a filename AlertControllerTest.groovy and inside it of =
> course it class AlertControllerTest it will say: duplicate class =
> defintion.
>
> If I cahnce the FILENAME to ACT.groovy, then the error goes away, and it =
> allows me to Run As... a junit configuration EITHER/BOTH ACT or =
> AlertControllerTest (both of which run fine).
>
> But seriously, it isn't okay that Ih ave to rename 100% of my test class =
> filenames hah
>
> Roger
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
> --
> Jochen "blackdrag" Theodorou
> The Groovy Project Tech Lead (http://groovy.codehaus.org)
> http://blackdragsview.blogspot.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.