Examples of PricingDataBean


Examples of org.eclipse.nebula.widgets.nattable.dataset.pricing.PricingDataBean

            public void widgetSelected(SelectionEvent e) {
                rowObjectsGlazedList.getReadWriteLock().writeLock().lock();
                try {
                    rowObjectsGlazedList.clear();
                    rowObjectsGlazedList.add(new PricingDataBean());
                    glazedListsGridLayer.bodyDataProvider.setColumnCount(8);
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                    rowObjectsGlazedList.add(new PricingDataBean());
                } finally {
                    rowObjectsGlazedList.getReadWriteLock().writeLock()
                            .unlock();
                }
            }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.dataset.pricing.PricingDataBean

public class DataValueGeneratorTest {

    @Test
    public void testClassAnnotationIsAccessible() {
        PricingDataBean bean = new PricingDataBean();

        boolean foundAnnotation = false;
        for (Field field : bean.getClass().getDeclaredFields()) {

            foundAnnotation |= field
                    .isAnnotationPresent(DataValueGenerator.class);
        }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.dataset.pricing.PricingDataBean

    // TODO The following test probably has a race condition - test
    // non-deterministic
    @Test
    public void testClassAnnotationDataCanBeAccessed() throws Exception {
        final Random random = new Random();
        final PricingDataBean bean = new PricingDataBean();

        for (Field field : bean.getClass().getDeclaredFields()) {
            if (field.isAnnotationPresent(DataValueGenerator.class)) {
                field.setAccessible(true);
                try {
                    Class<? extends IValueGenerator> generatorClass = field
                            .getAnnotation(DataValueGenerator.class).value();
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.dataset.pricing.PricingDataBean

public class DataGeneratorTest {

    @Test
    public void testGenerate() {
        try {
            PricingDataBean pricingDataBean = new DataGenerator<PricingDataBean>()
                    .generate(PricingDataBean.class);

            Assert.assertNotNull(pricingDataBean);
            Assert.assertTrue(pricingDataBean.getBid() >= 0.0d);
            Assert.assertTrue(pricingDataBean.getBid() < 10000.0d);

            Assert.assertTrue(pricingDataBean.getAsk() >= 0.0d);
            Assert.assertTrue(pricingDataBean.getAsk() < 10000.0d);

            Assert.assertTrue(pricingDataBean.getClosingPrice() >= 0.0d);
            Assert.assertTrue(pricingDataBean.getClosingPrice() < 10000.0d);

            Assert.assertNotNull(pricingDataBean.getPricingSource());
        } catch (GeneratorException e) {
            e.printStackTrace();
            Assert.fail(e.getMessage() + " : " + e.getCause().getMessage());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.