Package org.apache.isis.core.progmodel.facets.object.mask.annotation

Examples of org.apache.isis.core.progmodel.facets.object.mask.annotation.MaskAnnotationForTypeFacetFactory


        reflector.setLoadSpecificationStringReturn(customerNoSpec);
    }

    public void testMaskAnnotationPickedUpOnClass() {
        final MaskAnnotationForTypeFacetFactory facetFactory = new MaskAnnotationForTypeFacetFactory();
        facetFactory.setSpecificationLookup(reflector);

        @Mask("###")
        class Customer {
        }
        facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(MaskFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof MaskFacetAnnotationForType);
        final MaskFacetAnnotationForType maskFacet = (MaskFacetAnnotationForType) facet;
View Full Code Here


        reflector.setLoadSpecificationStringReturn(customerNoSpec);
    }

    public void testMaskAnnotationPickedUpOnClass() {
        final MaskAnnotationForTypeFacetFactory facetFactory = new MaskAnnotationForTypeFacetFactory();
        facetFactory.setSpecificationLookup(reflector);

        @Mask("###")
        class Customer {
        }
        facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(MaskFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof MaskFacetAnnotationForType);
        final MaskFacetAnnotationForType maskFacet = (MaskFacetAnnotationForType) facet;
View Full Code Here

        reflector.setLoadSpecificationStringReturn(customerNoSpec);
    }


    public void testMaskAnnotationPickedUpOnClass() {
        MaskAnnotationForTypeFacetFactory facetFactory = new MaskAnnotationForTypeFacetFactory();
        facetFactory.setSpecificationLookup(reflector);

        @Mask("###")
        class Customer {}
        facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(MaskFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof MaskFacetAnnotationForType);
        final MaskFacetAnnotationForType maskFacet = (MaskFacetAnnotationForType) facet;
View Full Code Here

TOP

Related Classes of org.apache.isis.core.progmodel.facets.object.mask.annotation.MaskAnnotationForTypeFacetFactory

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.