Examples of closeGroup()


Examples of org.mifosplatform.commands.service.CommandWrapperBuilder.closeGroup()

        } else if (is(commandParam, "transferClients")) {
            final CommandWrapper commandRequest = builder.transferClientsBetweenGroups(groupId).build();
            result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
            return this.toApiJsonSerializer.serialize(result);
        } else if (is(commandParam, "close")) {
            final CommandWrapper commandRequest = builder.closeGroup(groupId).build();
            result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
            return this.toApiJsonSerializer.serialize(result);
        } else {
            throw new UnrecognizedQueryParamException("command", commandParam, new Object[] { "activate", "generateCollectionSheet",
                    "saveCollectionSheet", "unassignStaff", "assignRole", "unassignRole", "updateassignRole" });
View Full Code Here

Examples of org.serviceconnector.call.ISCMPCall.closeGroup()

      cbk = new TestCallback(true);
      groupCall.setRequestBody(TestConstants.pangram.subSequence(i, i + 1));
      groupCall.invoke(cbk, 3000);
      TestUtil.checkReply(cbk.getMessageSync(3000));
    }
    groupCall.closeGroup(cbk, 3000); // send REQ (no body content)
    SCMPMessage res = cbk.getMessageSync(3000);

    Assert.assertEquals(TestConstants.pangram, res.getBody());
    Assert.assertNotNull(res.getMessageSequenceNr());
    Assert.assertEquals(SCMPBodyType.TEXT.getValue(), res.getHeader(SCMPHeaderAttributeKey.BODY_TYPE));
View Full Code Here

Examples of org.serviceconnector.call.ISCMPCall.closeGroup()

    groupCall.invoke(cbk, 1000);
    SCMPMessage reply = cbk.getMessageSync(1000);
    TestUtil.checkReply(reply);

    cbk = new TestCallback(true);
    groupCall.closeGroup(cbk, 1000); // send REQ (no body content)
    reply = cbk.getMessageSync(3000);

    Assert.assertEquals(largeString.length() + "", reply.getBodyLength() + "");
    Assert.assertEquals(largeString, reply.getBody());
    Assert.assertEquals(SCMPMsgType.CLN_EXECUTE.getValue(), reply.getMessageType());
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.