details: /erp/devel/pi/rev/1329292e5b35
changeset: 9395:1329292e5b35
user: Iván Perdomo <ivan.perdomo <at> openbravo.com>
date: Fri Dec 24 13:51:57 2010 +0100
summary: Fixes ClassLoaderTest, check if associated object is active
diffstat:
src-test/org/openbravo/test/model/ClassLoaderTest.java | 28 +++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r 8892bca8717c -r 1329292e5b35
src-test/org/openbravo/test/model/ClassLoaderTest.java
--- a/src-test/org/openbravo/test/model/ClassLoaderTest.java Fri Dec 24
13:37:27 2010 +0100
+++ b/src-test/org/openbravo/test/model/ClassLoaderTest.java Fri Dec 24
13:51:57 2010 +0100
@@ -74,6 +74,8 @@
obc = OBDal.getInstance().createCriteria(ModelImplementation.class);
obc.add(Expression.eq(ModelImplementation.PROPERTY_OBJECTTYPE, "S"));
obc.add(Expression.isNull(ModelImplementation.PROPERTY_TAB));
+ obc.add(Expression.isNull(ModelImplementation.PROPERTY_SPECIALFORM));
+ obc.add(Expression.isNull(ModelImplementation.PROPERTY_PROCESS));
for (ModelImplementation mi : obc.list()) {
try {
@@ -87,8 +89,32 @@
}
}
+ // Checking servlets associated to forms
+ OBQuery<ModelImplementation> obq =
OBDal.getInstance().createQuery(ModelImplementation.class,
+ "objectType = 'S' and specialForm is not null and specialForm.active =
true");
+
+ for (ModelImplementation mi : obq.list()) {
+ try {
+ Class.forName(mi.getJavaClassName());
+ } catch (ClassNotFoundException e) {
+ notFoundClasses.add(mi.getId() + " : " + mi.getJavaClassName());
+ }
+ }
+
+ // Check servlets associated to processes/reports
+ obq = OBDal.getInstance().createQuery(ModelImplementation.class,
+ "objectType = 'S' and process is not null and process.active = true");
+
+ for (ModelImplementation mi : obq.list()) {
+ try {
+ Class.forName(mi.getJavaClassName());
+ } catch (ClassNotFoundException e) {
+ notFoundClasses.add(mi.getId() + " : " + mi.getJavaClassName());
+ }
+ }
+
// Checking servlets associated to tabs
- OBQuery<ModelImplementation> obq =
OBDal.getInstance().createQuery(ModelImplementation.class,
+ obq = OBDal.getInstance().createQuery(ModelImplementation.class,
"objectType = 'S' and tab is not null and tab.active = true and
tab.window.active = true");
for (ModelImplementation mi : obq.list()) {
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits