Code example for BigDecimal

Methods: divide, doubleValue

0
    } 
 
    @After 
    public void tearDown() throws Exception { 
        logger.debug("test end");
        BigDecimal time = new BigDecimal(System.currentTimeMillis() - costTime);
        time = time.divide(new BigDecimal(1000));
        logger.debug("cost time: " + time.doubleValue() + "s");
    } 
 
    @Test 
    public void test() { 
        try { 
            execute(); 
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
            Assert.fail(e.getMessage());
        } 
    } 
 
    public abstract void execute() throws Exception;