1
2
3
4
5
6
7
8
9
10
11 package org.mule.config;
12
13 import org.mule.api.config.ThreadingProfile;
14 import org.mule.tck.junit4.AbstractMuleContextTestCase;
15
16 import org.junit.Test;
17
18 import static org.junit.Assert.assertEquals;
19 import static org.junit.Assert.assertNotNull;
20
21 public class DefaultThreadingProfileTestCase extends AbstractMuleContextTestCase
22 {
23
24 @Test
25 public void testDefaultThreadingProfile()
26 {
27 assertNotNull(muleContext.getDefaultThreadingProfile());
28 assertEquals(ThreadingProfile.DEFAULT_MAX_THREADS_ACTIVE, muleContext.getDefaultThreadingProfile()
29 .getMaxThreadsActive());
30 assertEquals(ThreadingProfile.DEFAULT_MAX_THREADS_IDLE, muleContext.getDefaultThreadingProfile()
31 .getMaxThreadsIdle());
32 assertEquals(ThreadingProfile.DEFAULT_MAX_THREAD_TTL, muleContext.getDefaultThreadingProfile()
33 .getThreadTTL());
34 assertEquals(ThreadingProfile.DEFAULT_MAX_BUFFER_SIZE, muleContext.getDefaultThreadingProfile()
35 .getMaxBufferSize());
36 assertEquals(ThreadingProfile.DEFAULT_POOL_EXHAUST_ACTION, muleContext.getDefaultThreadingProfile()
37 .getPoolExhaustedAction());
38 assertEquals(ThreadingProfile.DEFAULT_THREAD_WAIT_TIMEOUT, muleContext.getDefaultThreadingProfile()
39 .getThreadWaitTimeout());
40 assertEquals(ThreadingProfile.DEFAULT_DO_THREADING, muleContext.getDefaultThreadingProfile()
41 .isDoThreading());
42 }
43
44 }