Authored by chenchao

add unit test

package com.yohoufo.order.service;
import com.yohoufo.order.BaseTest;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by chao.chen on 2019/1/22.
*/
public class RuntimeExceptionTest extends BaseTest{
private Logger logger = LoggerFactory.getLogger(getClass());
@Test
public void testPrintStack(){
try{
throw new RuntimeException("test RuntimeException");
}catch (Exception ex){
logger.warn("in testPrintStack occur error", ex);
}
doAfterOccurError();
}
private void doAfterOccurError(){
System.out.println("always i thought code can reach here");
}
}
... ...