0 Replies Latest reply on Aug 24, 2016 3:06 PM by Howard Li

    What do I need to do in order for me to test my Spring repositories using Arquillian?

    Howard Li Newbie

      I've search around the Internet for solutions to my problem and came up with either simple ones that don't work or complicated ones that I don't have time to try.


      When I followed the steps given at the arquillian-extension-spring Github page, I received the following error


      java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration.contextClass()


      So what I want to achieve is to be able to test my Spring repositories (and beans in general) in a remote Wildfly 10 server via Arquillian.


      If you want to offer a solution please try to answer the following:


      What dependencies do I need to add to my pom.xml?

      Do I need any notable configurations for my applicationContext.xml?

      What annotations do I need to add to my tests classes?