### Question:
OracleQueryTokenizer extends QueryTokenizer implements IQueryTokenizer { public void setScriptToTokenize(String script) { super.setScriptToTokenize(script); removeSqlPlusSetCommands(); breakApartNewLines(); joinFragments(procPattern, false); joinFragments(funcPattern, false); joinFragments(triggerPattern, false); joinFragments(packagePattern, false); joinFragments(declPattern, false); joinFragments(beginPattern, true); expandFileIncludes(ORACLE_SCRIPT_INCLUDE_PREFIX); removeRemainingSlashes(); _queryIterator = _queries.iterator(); } OracleQueryTokenizer(IQueryTokenizerPreferenceBean prefs); void setScriptToTokenize(String script); @Override TokenizerSessPropsInteractions getTokenizerSessPropsInteractions();  }### Answer:
@Test public void testHasQuery() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(SELECT_DUAL); SQLUtil.checkQueryTokenizer(qt, 1); qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(SELECT_DUAL_2); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testGenericSQL() { String script = SQLUtil.getGenericSQLScript(); qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(script); SQLUtil.checkQueryTokenizer(qt, SQLUtil.getGenericSQLCount()); }
@Test public void testCreateStoredProcedure() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(CREATE_STORED_PROC); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testCreateOrReplaceStoredProcedure() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(CREATE_OR_REPLACE_STORED_PROC); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testCreatePackage() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(CREATE_OR_REPLACE_PACKAGE_SQL); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testCreatePackageBody() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(CREATE_OR_REPLACE_PACKAGE_BODY_SQL); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testHasQueryFromFile() { String fileSQL = "@" + tmpFilename + ";\n"; qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(fileSQL); SQLUtil.checkQueryTokenizer(qt, sqlFileStmtCount); }
@Test public void testExecAnonProcedure() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(ANON_PROC_EXEC); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testExecAnonProcedure2() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(ANON_PROC_EXEC_2); SQLUtil.checkQueryTokenizer(qt, 1); }
@Test public void testNoSepSlash() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(NO_SEP_SLASH_SQL); SQLUtil.checkQueryTokenizer(qt, 2); }
@Test public void testStripSQLPlusCommands() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(SET_COMMANDS); SQLUtil.checkQueryTokenizer(qt, 2); }
@Test public void testEmbeddedQuote() { qt = new OracleQueryTokenizer(_prefs); qt.setScriptToTokenize(SELECTS_WITH_EMBEDDED_COMMENT); SQLUtil.checkQueryTokenizer(qt, 2); }