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

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


    @Before
    public void setUpObjects() throws Exception {
        byteObj = Byte.valueOf((byte) 102);
        allowMockAdapterToReturn(byteObj);
        holder = new FacetHolderImpl();

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


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

        holder = new FacetHolderImpl();
        setValue(new DoubleWrapperValueSemanticsProvider(holder, mockConfiguration, mockContext));

        doubleObj = new Double(32.5d);
        allowMockAdapterToReturn(doubleObj);
    }
View Full Code Here

            }
        });

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

    protected void setUp() throws Exception {
        Logger.getRootLogger().setLevel(Level.OFF);
        super.setUp();
        BasicConfigurator.configure();
        reflector = new ProgrammableReflector();
        facetHolder = new FacetHolderImpl();
        facetedMethod = FacetedMethod.createProperty(Customer.class, "firstName");
        facetedMethodParameter = new FacetedMethodParameter(String.class);
        methodRemover = new ProgrammableMethodRemover();
    }
View Full Code Here

        setupSpecification(Percentage.class);

        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

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.