Package org.apache.isis.runtimes.dflt.runtime.testsystem

Examples of org.apache.isis.runtimes.dflt.runtime.testsystem.TestProxySession


        IsisContext.getTransactionManager().startTransaction();

        IsisContext.getUpdateNotifier().addChangedObject(adapter);

        final ExecuteServerActionRequest request =
            new ExecuteServerActionRequest(new TestProxySession(), ActionType.USER, "action()", targetData,
                parameterData);
        final ExecuteServerActionResponse result = server.executeServerAction(request);

        IsisContext.getTransactionManager().endTransaction();
View Full Code Here


        IsisContext.getMessageBroker().addWarning("warning 1");
        IsisContext.getMessageBroker().addWarning("warning 2");

        final ExecuteServerActionRequest request =
            new ExecuteServerActionRequest(new TestProxySession(), ActionType.USER, "action()", targetData,
                parameterData);
        final ExecuteServerActionResponse result = server.executeServerAction(request);

        IsisContext.getTransactionManager().endTransaction();
View Full Code Here

        final DummyIdentityData identityData =
            new DummyIdentityData(oid, TestProxyAdapter.class.getName(), new TestProxyVersion(6));

        try {
            final ExecuteClientActionRequest request =
                new ExecuteClientActionRequest(new TestProxySession(), new ReferenceData[] { identityData },
                    new int[] { ClientTransactionEvent.DELETE });
            server.executeClientAction(request);
            fail();
        } catch (final ConcurrencyException expected) {
        }
View Full Code Here

            }
        });

        // don't start xactn here, since within call.
        final ExecuteClientActionRequest request =
            new ExecuteClientActionRequest(new TestProxySession(), new ReferenceData[] { identityData },
                new int[] { ClientTransactionEvent.DELETE });
        final ExecuteClientActionResponse result = server.executeClientAction(request);

        assertEquals(results, result);
    }
View Full Code Here

            @Override
            public void shutdown() {
            }
        };
        serverFacadeProxy = new ServerFacadeProxy(connection);
        session = new TestProxySession();
    }
View Full Code Here

                reflector, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);
        IsisContextStatic.createRelaxedInstance(sessionFactory);
        sessionFactory.init();

        session = new TestProxySession();
        IsisContext.openSession(session);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.runtime.testsystem.TestProxySession

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.