Package net.rubyeye.xmemcached.command.text

Examples of net.rubyeye.xmemcached.command.text.TextGetOneCommand.encode()


  public void testMergeFactorEqualsZero() {
    this.optimiezer.setMergeFactor(0);
    TextGetOneCommand optimiezeCommand = (TextGetOneCommand) this.optimiezer
        .optimiezeGet(this.writeQueue, this.executingCmds,
            this.currentCmd);
    optimiezeCommand.encode();

    assertNull(optimiezeCommand.getMergeCommands());
    assertSame(CommandType.GET_ONE, optimiezeCommand.getCommandType());
    assertNull(optimiezeCommand.getMergeCommands());
    assertEquals(-1, optimiezeCommand.getMergeCount());
View Full Code Here


  public void testDisableMergeGet() {
    this.optimiezer.setOptimizeGet(false); // disable merge get
    TextGetOneCommand optimiezeCommand = (TextGetOneCommand) this.optimiezer
        .optimiezeGet(this.writeQueue, this.executingCmds,
            this.currentCmd);
    optimiezeCommand.encode();
    assertNull(optimiezeCommand.getMergeCommands());
    assertSame(CommandType.GET_ONE, optimiezeCommand.getCommandType());
    assertNull(optimiezeCommand.getMergeCommands());
    assertEquals(-1, optimiezeCommand.getMergeCount());
    assertEquals("get 0\r\n", new String(optimiezeCommand.getIoBuffer()
View Full Code Here

  public void testMergeFactorEqualsZero() {
    this.optimiezer.setMergeFactor(0);
    TextGetOneCommand optimiezeCommand = (TextGetOneCommand) this.optimiezer
        .optimiezeGet(this.writeQueue, this.executingCmds,
            this.currentCmd);
    optimiezeCommand.encode();

    assertNull(optimiezeCommand.getMergeCommands());
    assertSame(CommandType.GET_ONE, optimiezeCommand.getCommandType());
    assertNull(optimiezeCommand.getMergeCommands());
    assertEquals(-1, optimiezeCommand.getMergeCount());
View Full Code Here

  public void testDisableMergeGet() {
    this.optimiezer.setOptimizeGet(false); // disable merge get
    TextGetOneCommand optimiezeCommand = (TextGetOneCommand) this.optimiezer
        .optimiezeGet(this.writeQueue, this.executingCmds,
            this.currentCmd);
    optimiezeCommand.encode();
    assertNull(optimiezeCommand.getMergeCommands());
    assertSame(CommandType.GET_ONE, optimiezeCommand.getCommandType());
    assertNull(optimiezeCommand.getMergeCommands());
    assertEquals(-1, optimiezeCommand.getMergeCount());
    assertEquals("get 0\r\n", new String(optimiezeCommand.getIoBuffer()
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.