0 Replies Latest reply on Nov 21, 2016 12:29 AM by marks1900

    Java EE Scheduling with Arquillian

    marks1900 Newbie

      What is the best practice to test Java EE Scheduling code?  What are my options?


      My current process..


      1.  Ensure that the Java EE scheduler is kept separate from the associated business logic.

      2.  In my Arquillian Wildfly instance, I disable the Wildfly timer service by manually removing the following snippet from wildfly-10.1.0.Final-arquillian/standalone/configuration/standalone-full.xml:


      <timer-service thread-pool-name="default" default-data-store="default-file-store">
              <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>


      3.  Create the Arquillian test code that manually runs against the associated business logic.