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

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


            }
        });

        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();
        setupSpecification(Date.class);
        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();

        mockery.checking(new Expectations() {
            {
                allowing(mockConfiguration).getString("isis.value.format.long");
                will(returnValue(null));
View Full Code Here

    private FacetHolder facetHolder;

    @Before
    public void setUpObjects() throws Exception {
        booleanObj = Boolean.valueOf(true);
        facetHolder = new FacetHolderImpl();
        setValue(value = new BooleanWrapperValueSemanticsProvider(facetHolder, mockConfiguration, mockContext));
    }
View Full Code Here

    private FacetHolder holder;

    @Before
    public void setUpObjects() throws Exception {
        character = Character.valueOf('r');
        holder = new FacetHolderImpl();
        setValue(value = new CharWrapperValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
View Full Code Here

            }
        });

        bigDecimal = new BigDecimal("34132.199");
        allowMockAdapterToReturn(bigDecimal);
        holder = new FacetHolderImpl();

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

                will(returnValue(null));
            }
        });

        TestClock.initialize();
        holder = new FacetHolderImpl();
        setValue(adapter = new DateTimeValueSemanticsProvider(holder, mockConfiguration, mockContext));
    }
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

    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

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.