I'm trying to run the FeedInboundChannelAdapterSample from the SpringSource-spring-integration-samples distribution.
When I run 'mvn test' it says There are no tests to run.
There's a method with the @Test annotation so why isn't mvn running this test?
Well, that isn't a Spring question, it is a Maven question. Maybe the maven pom file isn't running tests, maybe it was run with your settings file having running tests not run them. Maybe the Test class isn't in the test directory that Maven is looking at.
Have you tried just running the test in your IDE? That is how I run all my tests.
How are you tests defined? By default, the Surefire plugin runs tests that it finds in the src/test/java directory, and it only runs tests whose classnames begin or end with "Test". Thus, tests in this class would be run:
I didn't write the test or the code. I'm just trying to run the a sample program provided in the SpringSource distribution of Spring Integration Samples.
I was hoping the someone else on the Spring Forum might know if these samples run as is or if they need tweaking.
The accursed class is in src/test/java/somepackage/FeedInboundChannelAdapterSample.java
It doesn't have Test or Tests in the name.
So I can either change the name of the class or configure the plugin in the pom?
I don't know squat about maven. Thanks for the help.