Code example for BigDecimal

Methods: dividedoubleValue

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());
        } 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE