ProcedureDao { public List<Procedure> getAllProcedure(String nameFilter, String owner, String projectName, String sourcesTable) { List<Procedure> allProcedures = getAllProcedure(nameFilter, "", owner, projectName, sourcesTable); allProcedures.addAll(getAllSimpleFunctionAndProcedure(owner, projectName, sourcesTable)); return allProcedures; } ProcedureDao(DataSource dataSource); List<Procedure> getAllProcedure(String nameFilter, String owner, String projectName, String sourcesTable); List<Procedure> getAllSimpleFunctionAndProcedure(String owner, String projectName, String sourcesTable); List<Procedure> getAllProcedure(String packageName, String procedureName, String owner, String projectName, String sourcesTable); List<ProcedureArgument> getProcedureArguments(String packageName, String procedureName, String overLoadNo, String owner); List<OraclePackage> getAllPackages(String nameFilter, String owner, String projectName, String sourcesTable);  }
@Test public void testGetAllProcedures() { List<Procedure> allProcedures = procedureDao.getAllProcedure("", "OBRIDGE", null, null); Collection<String> procedureNames = FuncUtils.pluck("storedProcedureClassName", String.class, allProcedures); Assert.assertTrue(procedureNames.contains("SimpleProceduresA")); Assert.assertTrue(procedureNames.contains("SimpleProceduresOverload1")); Assert.assertTrue(procedureNames.contains("SimpleProceduresOverload2")); }