package test.java.util.concurrent;
import java.util.concurrent.TimeoutException;
import org.junit.Test;
/**
* TimeoutException的测试类
* 超时处理异常类
* @date 2020-07-29 20:32:57
*/
public class TimeoutExceptionTest {
/**
* 无参构造函数
* @Param
*/
@Test
public void testConstruct0()throws Exception{
TimeoutException testObj=new TimeoutException();
System.out.println(testObj.getMessage());
}
/**
*通过message初始化
* @Param
*/
@Test
public void testConstruct1()throws Exception{
TimeoutException testObj=new TimeoutException("123");
System.out.println(testObj.getMessage());
}
}