Package org.yaac.server.egql

Examples of org.yaac.server.egql.FromEntity


  @Test
  public void testBasic() throws Exception {
    String inputStr = "from a";
    FromClause actual = TestUtil.parser(inputStr).from_clause().e;
    FromClause expected = new FromClause().add(new FromEntity("a", null));
    Assert.assertEquals(expected, actual);
  }
View Full Code Here


  @Test
  public void testMulti() throws Exception {
    String inputStr = "from a, b, c";
    FromClause actual = TestUtil.parser(inputStr).from_clause().e;
    FromClause expected = new FromClause().add(
        new FromEntity("a")).add(new FromEntity("b")).add(new FromEntity("c"));
    Assert.assertEquals(expected, actual);
  }
View Full Code Here

  @Test
  public void testMultiAlias() throws Exception {
    String inputStr = "from a as b, b as c, c as d";
    FromClause actual = TestUtil.parser(inputStr).from_clause().e;
    FromClause expected = new FromClause().add(
        new FromEntity("a", "b")).add(new FromEntity("b", "c")).add(new FromEntity("c", "d"));
    Assert.assertEquals(expected, actual);
  }
View Full Code Here

TOP

Related Classes of org.yaac.server.egql.FromEntity

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.