Confirmed users
355
edits
Nalexander (talk | contribs) |
Nalexander (talk | contribs) |
||
| Line 150: | Line 150: | ||
* Select the <tt>test</tt> project and execute <tt>Run > Run As ... > Android JUnit Test</tt>. | * Select the <tt>test</tt> project and execute <tt>Run > Run As ... > Android JUnit Test</tt>. | ||
==== To add JUnit 4 import support ==== | |||
From http://stackoverflow.com/questions/288861/eclipse-optimize-imports-to-include-static-imports: | |||
* From <tt>Preferences > Java > Editor > Content Assist > Favorites</tt>, choose <tt>Add Type</tt> and enter "org.junit.Assert". Then Shift + Ctrl + O and Alt + 1 should automatically find <tt>assertEquals</tt>, <tt>fail</tt>, and friends. | |||
== Development == | == Development == | ||