details:   /erp/devel/pi/rev/49e9e8c16002
changeset: 9114:49e9e8c16002
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Tue Dec 14 09:49:50 2010 +0100
summary:   Related to issue 15360. Added test

diffstat:

 src-test/org/openbravo/test/dal/IssuesTest.java |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 84c12a38ee1f -r 49e9e8c16002 
src-test/org/openbravo/test/dal/IssuesTest.java
--- a/src-test/org/openbravo/test/dal/IssuesTest.java   Tue Dec 14 07:13:11 
2010 +0100
+++ b/src-test/org/openbravo/test/dal/IssuesTest.java   Tue Dec 14 09:49:50 
2010 +0100
@@ -33,6 +33,7 @@
 import org.dom4j.Document;
 import org.dom4j.io.SAXReader;
 import org.hibernate.criterion.Expression;
+import org.openbravo.base.model.ModelProvider;
 import org.openbravo.base.model.Reference;
 import org.openbravo.base.model.domaintype.LongDomainType;
 import org.openbravo.base.provider.OBProvider;
@@ -565,4 +566,13 @@
     dth.run();
     OBContext.setOBContext(obContext);
   }
+
+  /**
+   * https://issues.openbravo.com/view.php?id=15360: 
ModelProvider.getTable(tablename) should not
+   * fail
+   */
+  public void test15360() throws Exception {
+    org.openbravo.base.model.Table corder = 
ModelProvider.getInstance().getTable("C_Order");
+    assertFalse(corder == null);
+  }
 }
\ No newline at end of file

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to