Search in sources :

Example 21 with TestConfiguration

use of nl.nn.adapterframework.testutil.TestConfiguration in project iaf by ibissource.

the class IbisJobDetailTest method setup.

@Before
public void setup() throws ConfigurationException {
    Configuration configuration = new TestConfiguration();
    jobDef1 = SpringUtils.createBean(configuration, SendMessageJob.class);
    jobDef1.setName("fakeName");
    jobDef1.setJavaListener("fakeListener");
    configuration.registerScheduledJob(jobDef1);
    jobDef2 = SpringUtils.createBean(configuration, SendMessageJob.class);
    jobDef2.setName("fakeName2");
    jobDef2.setJavaListener("fakeListener");
    configuration.registerScheduledJob(jobDef2);
}
Also used : SendMessageJob(nl.nn.adapterframework.scheduler.job.SendMessageJob) TestConfiguration(nl.nn.adapterframework.testutil.TestConfiguration) Configuration(nl.nn.adapterframework.configuration.Configuration) TestConfiguration(nl.nn.adapterframework.testutil.TestConfiguration) Before(org.junit.Before)

Aggregations

TestConfiguration (nl.nn.adapterframework.testutil.TestConfiguration)21 Test (org.junit.Test)12 Before (org.junit.Before)7 EchoPipe (nl.nn.adapterframework.pipes.EchoPipe)5 Message (nl.nn.adapterframework.stream.Message)3 MessageKeeper (nl.nn.adapterframework.util.MessageKeeper)3 Configuration (nl.nn.adapterframework.configuration.Configuration)2 IbisManager (nl.nn.adapterframework.configuration.IbisManager)2 Adapter (nl.nn.adapterframework.core.Adapter)2 PipeLine (nl.nn.adapterframework.core.PipeLine)2 PipeLineExit (nl.nn.adapterframework.core.PipeLineExit)2 PipeLineResult (nl.nn.adapterframework.core.PipeLineResult)2 PipeLineSession (nl.nn.adapterframework.core.PipeLineSession)2 CorePipeProcessor (nl.nn.adapterframework.processors.CorePipeProcessor)2 URL (java.net.URL)1 Properties (java.util.Properties)1 Set (java.util.Set)1 SecurityContext (javax.ws.rs.core.SecurityContext)1 ConfigurationDigester (nl.nn.adapterframework.configuration.ConfigurationDigester)1 IbisContext (nl.nn.adapterframework.configuration.IbisContext)1