J'ai des tests qui chargent certains fichiers de contexte Spring. Quand je lance les tests de ma cible de fourmis, ils fonctionnent comme prévu. Quand je les lance depuis IntelliJ, j'obtiens une exception NotWritablePropertyException. Au départ, je pensais à différents chemins de classes, mais les seules différences sont pour le coureur d'essai d'IntelliJ.SpringJUnit4ClassRunner tests - travail de ant, pas de l'IDE
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionAcknowledgeMode' of bean class [org.springframework.jms.listener.DefaultMessageListenerContainer]: Bean property 'sessionAcknowledgeMode' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 42 more
Les classpaths n'étaient pas les mêmes, mon erreur, mes excuses. –