It would be cool if you could set the profile for testing right in this annotation.
Now, i must write 2 annotations in every test:
Want write something like this:
@SpringJUnitConfig(profiles = "test")
I think, most JUnit tests uses custom test profile.
Why not using system property? Because if you develop with IDE, for example, IntelliJ IDEA, you can run test by one click and IDEA must know, which profile must be used for this test.