Package org.apache.isis.core.metamodel.facets.actions.semantics

Examples of org.apache.isis.core.metamodel.facets.actions.semantics.ActionSemanticsFacetAbstract


        Method actionMethod = findMethod(SomeTransactionalId.class, "someAction");

        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(SomeTransactionalId.class, null, null, actionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertNull(facet);
View Full Code Here


        String configuredValue = "all";
        Of actionSemantics = Of.SAFE;
       
        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, customerActionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertTrue(facet instanceof CommandFacetAbstract);
View Full Code Here

        String configuredValue = "ignoreQueryOnly";
        Of actionSemantics = Of.SAFE;
       
        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, customerActionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertNull(facet);
View Full Code Here

        String configuredValue = "none";
        Of actionSemantics = Of.NON_IDEMPOTENT;
       
        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, customerActionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertNull(facet);
View Full Code Here

        Method actionMethod = findMethod(SomeTransactionalId.class, "someAction");

        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(SomeTransactionalId.class, null, null, actionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertNull(facet);
View Full Code Here

        String configuredValue = "all";
        Of actionSemantics = Of.SAFE;
       
        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, customerActionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertTrue(facet instanceof CommandFacetAbstract);
View Full Code Here

        String configuredValue = "ignoreQueryOnly";
        Of actionSemantics = Of.SAFE;
       
        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, customerActionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertNull(facet);
View Full Code Here

        String configuredValue = "none";
        Of actionSemantics = Of.NON_IDEMPOTENT;
       
        allowingConfigurationToReturn(configuredValue);

        facetedMethod.addFacet(new ActionSemanticsFacetAbstract(actionSemantics, facetedMethod) {});
        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, customerActionMethod, mockMethodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(CommandFacet.class);
        Assert.assertNull(facet);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.actions.semantics.ActionSemanticsFacetAbstract

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.