Package org.mule.tck.MuleTestUtils

Examples of org.mule.tck.MuleTestUtils.TestCallback


    public void increaseBufferSizeViaSystemProperty() throws Exception
    {
        final int newBufferSize = 8 * 1024;

        testWithSystemProperty(MuleProperties.MULE_STREAMING_BUFFER_SIZE, Integer.toString(newBufferSize),
            new TestCallback()
            {
                @Override
                public void run() throws Exception
                {
                    InputStream in = new ByteArrayInputStream(new byte[newBufferSize]);
View Full Code Here


    }
   
    @Test
    public void tcpNoDelayDefaultSystemPropertyTrue() throws Exception
    {
        testWithSystemProperty(TcpConnector.SEND_TCP_NO_DELAY_SYSTEM_PROPERTY, "true", new TestCallback()
        {
            @Override
            public void run() throws Exception
            {
                assertTrue(((HttpConnector) createConnector()).isSendTcpNoDelay());
View Full Code Here

    }

    @Test
    public void tcpNoDelayDefaultSystemPropertyFalse() throws Exception
    {
        testWithSystemProperty(TcpConnector.SEND_TCP_NO_DELAY_SYSTEM_PROPERTY, "false", new TestCallback()
        {
            @Override
            public void run() throws Exception
            {
                assertFalse(((HttpConnector) createConnector()).isSendTcpNoDelay());
View Full Code Here

    @Test
    public void httpClientDisableStaleConnectionSystemProperty() throws Exception
    {
        testWithSystemProperty(HttpConnector.DISABLE_STALE_CONNECTION_CHECK_SYSTEM_PROPERTY, "true",
            new TestCallback()
            {
                @Override
                public void run() throws Exception
                {
                    assertHttpClientStaleConnectionCheck(getInitialisedHttpConnector(), false);
View Full Code Here

    }

    public void singleDispatcherPerEndpointSyetemProperty() throws Exception
    {
        testWithSystemProperty(HttpConnector.SINGLE_DISPATCHER_PER_ENDPOINT_SYSTEM_PROPERTY, "true",
            new TestCallback()
            {

                @Override
                public void run() throws Exception
                {
View Full Code Here

    }

    @Test
    public void tcpNoDelayDefaultSystemPropertyTrue() throws Exception
    {
        testWithSystemProperty(TcpConnector.SEND_TCP_NO_DELAY_SYSTEM_PROPERTY, "true", new TestCallback()
        {
            @Override
            public void run() throws Exception
            {
                assertTrue(((TcpConnector) createConnector()).isSendTcpNoDelay());
View Full Code Here

    }

    @Test
    public void tcpNoDelayDefaultSystemPropertyFalse() throws Exception
    {
        testWithSystemProperty(TcpConnector.SEND_TCP_NO_DELAY_SYSTEM_PROPERTY, "false", new TestCallback()
        {
            @Override
            public void run() throws Exception
            {
                assertFalse(((TcpConnector) createConnector()).isSendTcpNoDelay());
View Full Code Here

    @Test
    public void dispatcherPoolDisabled() throws Exception
    {
        testWithSystemProperty(JdbcConnector.USE_DISPATCHER_POOL_SYSTEM_PROPERTY, "false",
                               new TestCallback()
                               {
                                   @Override
                                   public void run() throws Exception
                                   {
                                       JdbcConnector jdbcConnector = (JdbcConnector) createConnector();
View Full Code Here

    @Test
    public void dispatcherPoolEnabled() throws Exception
    {
        testWithSystemProperty(JdbcConnector.USE_DISPATCHER_POOL_SYSTEM_PROPERTY, "true",
                               new TestCallback()
                               {
                                   @Override
                                   public void run() throws Exception
                                   {
                                       JdbcConnector jdbcConnector = (JdbcConnector) createConnector();
View Full Code Here

TOP

Related Classes of org.mule.tck.MuleTestUtils.TestCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.