public class TestSpringCmdLineActionStore extends TestCase {
private static final String SPRING_CONFIG = "src/testdata/cmd-line-actions.xml";
public void testActionNamesAutoSet() {
SpringCmdLineActionStore store = new SpringCmdLineActionStore(
SPRING_CONFIG);
ApplicationContext appContext = store.getApplicationContext();
@SuppressWarnings("unchecked")
Map<String, CmdLineAction> actionsMap = appContext
.getBeansOfType(CmdLineAction.class);
for (Entry<String, CmdLineAction> entry : actionsMap.entrySet()) {
assertEquals(entry.getKey(), entry.getValue().getName());