Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] how to create new junit test

Hi Ari,

Sounds like you are doing platform development, please use eclipse-dev mailing list in this case.

I think in SWT the save actions remove unused import statement and add new used once if required. So if you are using the imports they should not be remove. 


Looking forward to your performance improvement Gerrits. :-)

Best regards, Lars

Ari Kast <arikast@xxxxxxxxx> schrieb am Do., 18. Juni 2020, 21:25:
Hi all

I'm doing some work inside org.eclipse.swt.custom.StyledTextRenderer to improve the cache hit ratio for the "layouts" field, and I wanted to write test cases for my work.

I didn't see an existing test class so I copied and created

To my surprise though, at the top of the test class when I import org.eclipse.swt.custom.StyledTextRenderer, some Eclipse rule seems to kick in and immediately delete my import statement.

What is the correct place and way to write JUnit tests for this class?

jdt-dev mailing list
To unsubscribe from this list, visit

Back to the top