Package org.apache.isis.core.metamodel.facetapi

Examples of org.apache.isis.core.metamodel.facetapi.FacetHolderImpl


    @Before
    public void setUpObjects() throws Exception {
        Locale.setDefault(new Locale("pl", "PL"));
        originalMoney = new Money(10.50, "pln");
        holder = new FacetHolderImpl();
        setValue(adapter = new MoneyValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here


    private FacetHolderImpl holder;

    @Before
    public void setUp() throws Exception {
        holder = new FacetHolderImpl();
    }
View Full Code Here

            }
        });

        TestClock.initialize();
        date = new Date(0);
        holder = new FacetHolderImpl();
        setValue(adapter = new JavaSqlDateValueSemanticsProvider(holder, mockConfiguration, mockContext) {
            @Override
            protected String defaultFormat() {
                return "iso";
            }
View Full Code Here

    @Before
    public void setUpObjects() throws Exception {
        blob = new Blob("myfile1.docx", "application", "vnd.ms-word", new byte[]{1,2,3,4});
        allowMockAdapterToReturn(blob);
        holder = new FacetHolderImpl();

        setValue(value = new BlobValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

    private FacetHolder holder;

    @Before
    public void setUpObjects() throws Exception {
        string = "text entry";
        holder = new FacetHolderImpl();
        setValue(value = new StringValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);

        twoOClock = new Time(c.getTimeInMillis());

        holder = new FacetHolderImpl();
        setValue(value = new JavaSqlTimeValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

                allowing(mockConfiguration).getString("isis.value.format.int");
                will(returnValue(null));
            }
        });

        holder = new FacetHolderImpl();
        setValue(value = new IntWrapperValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

                allowing(mockConfiguration).getString("isis.value.format.int");
                will(returnValue(null));
            }
        });

        holder = new FacetHolderImpl();
        setValue(new BigIntegerValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

    @Before
    public void setUpObjects() throws Exception {
        clob = new Clob("myfile1.xml", "application", "xml", "abcdef");
        allowMockAdapterToReturn(clob);
        holder = new FacetHolderImpl();

        setValue(value = new ClobValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

    @Before
    public void setUpObjects() throws Exception {
        color = new Color(0x3366ff);
        allowMockAdapterToReturn(color);
        holder = new FacetHolderImpl();

        setValue(value = new ColorValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facetapi.FacetHolderImpl

Copyright © 2018 www.massapicom. 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.