When writing code in IDEA, classes from JUnit/TestNG/your-test-framework-here should not be present for auto-completion in sources found under standard source folders (as opposed to source code in TEST source folders).
While this is not always true (e.g. if you a re writing an extension for JUnit or TestNG) it is usually a safe assumption to make. Of course, this should be configurable on a per-project basis, and turned off by default to preserve compatibility.
Description
When writing code in IDEA, classes from JUnit/TestNG/your-test-framework-here should not be present for auto-completion in sources found under standard source folders (as opposed to source code in TEST source folders).
While this is not always true (e.g. if you a re writing an extension for JUnit or TestNG) it is usually a safe assumption to make. Of course, this should be configurable on a per-project basis, and turned off by default to preserve compatibility.