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

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


        final IsisSessionFactory sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader, reflector, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory, servicesList);
        IsisContextStatic.createRelaxedInstance(sessionFactory);
        sessionFactory.init();

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


            }
        });

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

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

        });

        IsisContext.getTransactionManager().startTransaction();

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

        IsisContext.getTransactionManager().endTransaction();

        assertEquals(results, result);
View Full Code Here

        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();

        assertEquals(results, result);
View Full Code Here

        IsisContext.getMessageBroker().addMessage("message 2");

        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();

        assertEquals(results, result);
View Full Code Here

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

        final Oid oid = adapter.getOid();
        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

                will(returnValue(results));
            }
        });

        // 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

            }
        });

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

        assertEquals(results, result);
View Full Code Here

        IsisContext.getTransactionManager().startTransaction();

        IsisContext.getUpdateNotifier().addDisposedObject(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

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.