package test.java.util.concurrent;
import java.util.concurrent.RejectedExecutionException;
import org.junit.Test;
/**
* RejectedExecutionException的测试类
*
* @date 2020-07-27 21:57:08
*/
public class RejectedExecutionExceptionTest {
/**
* 无参构造函数
* @Param
*/
@Test
public void testConstruct0()throws Exception{
RejectedExecutionException testObj=new RejectedExecutionException();
System.out.println(testObj.getMessage());
}
/**
* 通过字符串初始化
* @Param
*/
@Test
public void testConstruct1()throws Exception{
RejectedExecutionException testObj=new RejectedExecutionException("132");
System.out.println(testObj.getMessage());
}
/**
*通过message和throwable初始化
* @Param
*/
@Test
public void testConstruct2()throws Exception{
RejectedExecu
RejectedExecutionException 拒绝策略异常类解析
最新推荐文章于 2024-06-19 21:09:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)