/** * Part one of a two part unit test which verifies that we lift out a * {@link SubqueryRoot} which is marked the {@link QueryHints#RUN_ONCE} * query hint. In this version of the test, the query hint is present and we * verify that the sub-select is lifted out. */ public void test_query_hints_04b() throws Exception { final ASTContainer astContainer = new TestHelper("query-hints-04b") .runTest(); final NamedSubqueriesNode namedSubqueries = astContainer .getOptimizedAST().getNamedSubqueries(); assertNotNull(namedSubqueries); assertEquals(1, namedSubqueries.arity()); }
/** * Part one of a two part unit test which verifies that we lift out a * {@link SubqueryRoot} which is marked the {@link QueryHints#RUN_ONCE} * query hint. In this version of the test, the query hint is present and we * verify that the sub-select is lifted out. */ public void test_query_hints_04b() throws Exception { final ASTContainer astContainer = new TestHelper("query-hints-04b") .runTest(); final NamedSubqueriesNode namedSubqueries = astContainer .getOptimizedAST().getNamedSubqueries(); assertNotNull(namedSubqueries); assertEquals(1, namedSubqueries.arity()); }
/** * Part one of a two part unit test which verifies that we lift out a * {@link SubqueryRoot} which is marked the {@link QueryHints#RUN_ONCE} * query hint. In this version of the test, the query hint is present and we * verify that the sub-select is lifted out. */ public void test_query_hints_04b() throws Exception { final ASTContainer astContainer = new TestHelper("query-hints-04b") .runTest(); final NamedSubqueriesNode namedSubqueries = astContainer .getOptimizedAST().getNamedSubqueries(); assertNotNull(namedSubqueries); assertEquals(1, namedSubqueries.arity()); }