Package org.apache.isis.core.metamodel.testspec

Examples of org.apache.isis.core.metamodel.testspec.TestProxySpecification


    public void setUp() throws Exception {
        final boolean isTransient = true;
        final long serialNum = Long.parseLong("1", 16);
        oid = isTransient ? SerialOid.createTransient(serialNum) : SerialOid.createPersistent(serialNum);

        spec = new TestProxySpecification(this.getClass());
        spec.fields = Collections.emptyList();

        version = new FileVersion("", System.currentTimeMillis());
        objectData = new ObjectData(spec, oid, version);
        objectDataVector = new ObjectDataVector();
View Full Code Here


    /**
     *
     */
    public TestProxyCollectionAdapter createPersistentTestCollection() {
        final TestProxyCollectionAdapter collection = new TestProxyCollectionAdapter(new Vector());
        final TestProxySpecification specification = getSpecification(Vector.class);
        final TestProxySpecification elementSpecification = getSpecification(Object.class);
        specification.addFacet(new TestProxyCollectionFacet());
        specification.addFacet(new TypeOfFacetDefaultToObject(elementSpecification, reflector) {
        });
        collection.setupSpecification(specification);
        return collection;
View Full Code Here

        return "Name";
    }

    @Override
    public ObjectSpecification getSpecification() {
        return new TestProxySpecification("java.lang.String");
    }
View Full Code Here

    @Before
    public void setup() {
        facetedMethod = FacetedMethod.createProperty(Customer.class, "firstName");
        objectAssociation =
            new ObjectAssociationAbstract(facetedMethod, FeatureType.PROPERTY, new TestProxySpecification("test"),
                new ObjectMemberContext(null, null, null, null)) {

                @Override
                public ObjectAdapter get(final ObjectAdapter fromObject) {
                    return null;
View Full Code Here

    @Override
    public ObjectSpecification loadSpecification(final String name) {
        if (specificationByFullName.containsKey(name)) {
            return specificationByFullName.get(name);
        } else {
            final TestProxySpecification specification = new TestProxySpecification(name);
            specificationByFullName.put(specification.getFullIdentifier(), specification);
            return specification;

            // throw new ObjectAdapterRuntimeException("no specification for " + name);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.testspec.TestProxySpecification

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.