details: /erp/devel/pi/rev/a56edfeb2fe4
changeset: 8587:a56edfeb2fe4
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Fri Oct 22 10:17:02 2010 +0200
summary: Related to issue 14528. Added new filtering also to
SystemValidatorTest
diffstat:
src-test/org/openbravo/test/system/SystemValidatorTest.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r be9aed3260c9 -r a56edfeb2fe4
src-test/org/openbravo/test/system/SystemValidatorTest.java
--- a/src-test/org/openbravo/test/system/SystemValidatorTest.java Fri Oct
22 09:58:45 2010 +0200
+++ b/src-test/org/openbravo/test/system/SystemValidatorTest.java Fri Oct
22 10:17:02 2010 +0200
@@ -19,6 +19,7 @@
package org.openbravo.test.system;
+import java.io.File;
import java.util.List;
import java.util.Properties;
@@ -30,7 +31,7 @@
import org.apache.log4j.Logger;
import org.openbravo.base.session.OBPropertiesProvider;
import org.openbravo.dal.service.OBDal;
-import org.openbravo.ddlutils.task.DatabaseUtils;
+import org.openbravo.ddlutils.util.DBSMOBUtil;
import org.openbravo.model.ad.module.Module;
import org.openbravo.service.system.DatabaseValidator;
import org.openbravo.service.system.ModuleValidator;
@@ -98,8 +99,8 @@
if (module != null) {
final String dbPrefix = module.getModuleDBPrefixList().get(0).getName();
- final String excludeobjects = "com.openbravo.db.OpenbravoExcludeFilter";
- final ExcludeFilter filter =
DatabaseUtils.getExcludeFilter(excludeobjects);
+ final ExcludeFilter filter = DBSMOBUtil.getInstance().getExcludeFilter(
+ new File(props.getProperty("source.path")));
filter.addPrefix(dbPrefix);
return platform.loadModelFromDatabase(filter, dbPrefix, true,
module.getId());
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits