Package org.cyclop.model

Examples of org.cyclop.model.ContextCqlCompletion


    verifyInitialCompletion(completion);
  }

  @Test
  public void testFindCompletion_Delete_AfterDelete() {
    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DELETE, "delete "));

    vh.verifyFullAndMinCompletionTheSame(completion, 30);
    vh.verifyContainsAllColumns(completion, true);

    ImmutableSortedSet<? extends CqlPart> cmp = completion.cqlCompletion.fullCompletion;
View Full Code Here


  @Test
  public void testFindCompletion_Delete_AfterFrom_NoSpqceInQuery() {
    qs.execute(new CqlQuery(CqlQueryType.USE, "use cqldemo"));

    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DELETE, "delete abc from "));

    verifyAfterFromNoSpqceInQuery(completion);
  }
View Full Code Here

  @Test
  public void testFindCompletion_Delete_AfterFrom_SpaceInQuery() {
    qs.execute(new CqlQuery(CqlQueryType.USE, "use system"));

    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DELETE,
        "delete abc from cqldemo."));

    vh.verifyCqldemoSpaceInQuery(completion);
  }
View Full Code Here

    vh.verifyCqldemoSpaceInQuery(completion);
  }

  @Test
  public void testFindCompletion_Delete_AfterTableName_KeyspaceInQuery() {
    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DELETE,
        "delete abc from cqldemo.mybooks"));
    verifyDeleteAfterTableName(completion);
  }
View Full Code Here

  }

  @Test
  public void testFindCompletion_Delete_AfterTableName_KeyspaceInSession() {
    qs.execute(new CqlQuery(CqlQueryType.USE, "use cqldemo"));
    ContextCqlCompletion completion = cs
        .findCompletion(new CqlQuery(CqlQueryType.DELETE, "delete abc from mybooks"));
    verifyDeleteAfterTableName(completion);
  }
View Full Code Here

  }

  @Test
  public void testFindCompletion_Delete_AfterTableName_WrongKeyspaceInSession() {
    qs.execute(new CqlQuery(CqlQueryType.USE, "use system"));
    ContextCqlCompletion completion = cs
        .findCompletion(new CqlQuery(CqlQueryType.DELETE, "delete abc from mybOoks"));
    verifyDeleteAfterTableName(completion);
  }
View Full Code Here

    verifyDeleteAfterTableName(completion);
  }

  @Test
  public void testFindCompletion_Delete_AfterWhere() {
    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DELETE,
        "delete abc from cqldemo.mybooks WHERE"));

    vh.verifyFullAndMinCompletionNotTheSame(completion, 15, 15);

    {
View Full Code Here

    }
  }

  @Test
  public void testFindCompletion_Delete_Start() {
    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DELETE, "d"));
    verifyInitialCompletion(completion);
  }
View Full Code Here

  }

  @Test
  public void testFindCompletion_DropIndex_AfterDrop() {
    qs.execute(new CqlQuery(CqlQueryType.USE, "use cqldemo"));
    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DROP_INDEX, "drop index   "));
    verifyDropIndexAfterDrop(completion);
  }
View Full Code Here

  }

  @Test
  public void testFindCompletion_DropIndex_AfterDropWithExists() {
    qs.execute(new CqlQuery(CqlQueryType.USE, "use cqldemo"));
    ContextCqlCompletion completion = cs.findCompletion(new CqlQuery(CqlQueryType.DROP_INDEX,
        "drop index IF NOT EXISTS"));
    verifyDropIndexAfterDrop(completion);
  }
View Full Code Here

TOP

Related Classes of org.cyclop.model.ContextCqlCompletion

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.