package com.mysema.query.collections;

import java.math.BigDecimal;
import java.util.Arrays;

import com.mysema.query.types.path.NumberPath;
import org.junit.Test;
import static org.junit.Assert.*;

public class NumberTest {

    @Test
    public void sum() throws Exception {
        final NumberPath<BigDecimal> num = new NumberPath<BigDecimal>(BigDecimal.class, "num");
        final CollQuery query = CollQueryFactory.from(num, Arrays.asList(new BigDecimal("1.6"), new BigDecimal("1.3")));

        // fail because sum use longValue
        assertEquals(new BigDecimal("2.9"), query.uniqueResult(num.sum()));
    }
}

@@ -492,50 +492,8 @@
 );%0A%0A
-        // fail because sum use longValue%0A
     

Remove comment #779