Package com.alibaba.druid.pool

Examples of com.alibaba.druid.pool.DataSourceDisableException


import com.alibaba.druid.pool.DataSourceDisableException;

public class DataSourceDisableExceptionTest extends TestCase {
    public void test_0() throws Exception {
        DataSourceDisableException ex = new DataSourceDisableException();
        Assert.assertEquals(null, ex.getMessage());
    }
View Full Code Here


        DataSourceDisableException ex = new DataSourceDisableException();
        Assert.assertEquals(null, ex.getMessage());
    }
   
    public void test_1() throws Exception {
        DataSourceDisableException ex = new DataSourceDisableException("XXX");
        Assert.assertEquals("XXX", ex.getMessage());
    }
View Full Code Here

        DataSourceDisableException ex = new DataSourceDisableException("XXX");
        Assert.assertEquals("XXX", ex.getMessage());
    }
   
    public void test_2() throws Exception {
        DataSourceDisableException ex = new DataSourceDisableException(new IllegalStateException());
        Assert.assertTrue(ex.getCause() instanceof IllegalStateException);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.pool.DataSourceDisableException

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.