Eclipse Tip : Static import help

While working with easy mock, till now I have to explicitly go and copy paste all the static imports from an earlier test case into the new one as there is no way (at least that is what I thought till now) to make eclipse help me assist with content completion without it.

Even worse is for every new method which I want to use on easy mock; I have to explicitly add a static import myself and then use it or for that matter may be first use it and then add the import.

This was till I found a feature in eclipse where I can specify my favorites for static imports.

static

3 Responses to “Eclipse Tip : Static import help”

  1. Galileo Eclipse Update | Soapbox Rants and Raves Says:

    [...] or ask for the content assist. Maybe I learned something new tonight, from this blog.  I typically enter all of the jUnit assertion signatures (method names only) that I typically [...]

  2. arriptbrada Says:

    Interesting issue, did not thought reading this was going to be so amazing when I saw your title.

  3. Gautam Says:

    Yeah, static import in eclipse is a bit cluzy. This plugin makes it easy : http://fast-code.sourceforge.net/.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.