Examples of AbstractExpression


Examples of com.agical.rmock.core.match.operator.AbstractExpression

        packager.pack(configurationData.getConfigurationDir());
       
        URL remoteDeployURL = recordGetDeployURL();
       
        fileUploadClient.uploadFilesToServer(remoteDeployURL, "username", "password", null, null);
        modify().args(is.AS_RECORDED, is.AS_RECORDED, is.AS_RECORDED, is.NOT_NULL, new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                FileUploadProgress progress = (FileUploadProgress) arg;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

    private File updloadToNode2(final File packedConfigurationDir) throws MalformedURLException {
        URL remoteDeployURL = recordGetDeployURL();
       
        final File packedConfigurationDirRemote = new File("packedConfigurationDirRemote");
        fileUploadClient.uploadFilesToServer(remoteDeployURL, "username", "password", null, null);
        modify().args(is.AS_RECORDED, is.AS_RECORDED, is.AS_RECORDED, new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                File[] files = (File[]) arg;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

        final Artifact slaveId = new Artifact("groupId", "slaveId", "2.0", "car");
        nameBuilder.buildSlaveConfigurationName(configId);
        modify().returnValue(slaveId);
       
        storeClient.install(clusterInfo, configurationData);
        modify().args(is.AS_RECORDED, new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                ConfigurationData configurationData = (ConfigurationData) arg;
                assertSame(slaveId, configurationData.getId());
                return true;
            }
        });
       
        delegate.install(configurationData);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                ConfigurationData configurationData = (ConfigurationData) arg;
                assertSame(slaveId, configurationData.getId());
                return true;
            }
        });
       
        NodeInfo nodeInfo = (NodeInfo) mock(NodeInfo.class);
        nodeInfo.getName();
        final String nodeName = "nodeName";
        modify().multiplicity(expect.from(0)).returnValue(nodeName);
        clusterInfo.getNodeInfos();
        modify().returnValue(Collections.singleton(nodeInfo));
       
        delegate.createNewConfigurationDir(configId);
        final File masterDir = new File("masterDir");
        modify().returnValue(masterDir);
       
        delegate.install(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                ConfigurationData configurationData = (ConfigurationData) arg;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

        request.getServerHash();
        modify().returnValue(server.buildHash() + 1);

        response.setServer(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }

            public boolean passes(Object arg0) {
                ServerMetaData actualServer = (ServerMetaData) arg0;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

        request.getServerHash();
        modify().returnValue(server.buildHash() + 1);

        response.setServer(null);
        modify().args(new AbstractExpression() {
            @Override
            public void describeWith(final ExpressionDescriber arg0) throws IOException {
            }

            @Override
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

        return newBeanEntryTask;
    }

    private Session recordAddSessionManagerAndCreateSession(VMID primaryKey) throws Exception {
        sessionManager.registerListener(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }

            public boolean passes(Object arg0) {
                sessionListener = (SessionListener) arg0;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

    @Override
    protected void setUp() throws Exception {
        connectors = (ReferenceCollection) mock(ReferenceCollection.class, "connectors");
        connectors.addReferenceCollectionListener(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }
            public boolean passes(Object arg0) {
                connectorListener = (ReferenceCollectionListener) arg0;
                return true;
            }
        });
       
        deployments = (ReferenceCollection) mock(ReferenceCollection.class, "deployments");
        deployments.addReferenceCollectionListener(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }
            public boolean passes(Object arg0) {
                deploymentListener = (ReferenceCollectionListener) arg0;
                return true;
            }
        });
       
        manager = (WADISessionManager) mock(WADISessionManager.class);
        manager.registerSessionManagerListener(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }

            public boolean passes(Object arg0) {
                managerListener = (SessionManagerListener) arg0;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

        cluster.getCluster().getDispatcher();
       
        serviceSpace.getServiceRegistry();
       
        sessionMonitor.addSessionListener(null);
        modify().args(new AbstractExpression() {
            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }

            public boolean passes(Object arg0) {
                wadiSessionListener = (org.codehaus.wadi.core.manager.SessionListener) arg0;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

            recordDoStart();
           
            SessionManagerListener managerListener = (SessionManagerListener) mock(SessionManagerListener.class);
           
            serviceSpace.addServiceSpaceListener(null);
            modify().args(new AbstractExpression() {
                public void describeWith(ExpressionDescriber arg0) throws IOException {
                }
                public boolean passes(Object arg0) {
                    serviceSpaceListener = (ServiceSpaceListener) arg0;
                    return true;
                }
            });
           
            NodeService nodeService = (NodeService) mock(NodeService.class);
           
            final Peer peer = (Peer) mock(Peer.class);
            peer.getName();
            modify().returnValue("peer");
            peer.getLocalStateMap();
            modify().multiplicity(expect.from(0)).returnValue(new HashMap());

            HashSet<Peer> peers = new HashSet<Peer>();
            peers.add(peer);
           
            executeManagerListenerCallback(managerListener);
            modify().args(new AbstractExpression() {
                public void describeWith(ExpressionDescriber arg0) throws IOException {
                }

                public boolean passes(Object arg0) {
                    RemoteNode remoteNode = (RemoteNode) arg0;
                    assertSame(peer, remoteNode.getPeer());
                    return true;
                }
            }, new AbstractExpression() {
                public void describeWith(ExpressionDescriber arg0) throws IOException {
                }

                public boolean passes(Object arg0) {
                    Set<RemoteNode> remoteNodes = (Set<RemoteNode>) arg0;
View Full Code Here

Examples of com.agical.rmock.core.match.operator.AbstractExpression

        assertTrue(remoteNodes.contains(nodePeer2));
    }
   
    public void testAddClusterListener() throws Exception {
        wadiCluster.addClusterListener(null);
        modify().args(new AbstractExpression() {

            public void describeWith(ExpressionDescriber arg0) throws IOException {
            }

            public boolean passes(Object arg0) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.