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

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


    @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

        });

        float1 = new Float(32.5f);
        allowMockAdapterToReturn(float1);

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

        });

        short1 = Short.valueOf((short) 32);
        allowMockAdapterToReturn(short1);

        holder = new FacetHolderImpl();

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

        });

        percentage = new Percentage(0.105f);
        allowMockAdapterToReturn(percentage);

        holder = new FacetHolderImpl();

        setValue(adapter = new PercentageValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

            }
        });

        TestClock.initialize();
        timestamp = new Timestamp(0);
        holder = new FacetHolderImpl();
        setValue(adapter = new JavaSqlTimeStampValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

            }
        });

        TestClock.initialize();
        timestamp = new TimeStamp(0);
        holder = new FacetHolderImpl();
        setValue(adapter = new TimeStampValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

    private Object password;
    private FacetHolder holder;

    @Before
    public void setUpObjects() throws Exception {
        holder = new FacetHolderImpl();
        setValue(adapter = new PasswordValueSemanticsProvider(holder, mockConfiguration, mockContext));
        password = new Password("secret");
    }
View Full Code Here

            }
        });

        TestClock.initialize();
        date = new Date(2001, 2, 4);
        holder = new FacetHolderImpl();
        setValue(adapter = new DateValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

    @Before
    public void setUpObjects() throws Exception {
        longObj = new Long(367322);
        allowMockAdapterToReturn(longObj);
        holder = new FacetHolderImpl();

        context.checking(new Expectations() {
            {
                allowing(mockConfiguration).getString("isis.value.format.long");
                will(returnValue(null));
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.