AdempiereTestCase : Fix method typo error introduced in rev. 8239

This commit is contained in:
teo_sarca 2009-01-29 17:47:14 +00:00
parent 132b79aa02
commit a2fb1cf06d
2 changed files with 6 additions and 6 deletions

View File

@ -227,7 +227,7 @@ public class AdempiereTestCase extends TestCase {
* @param runnable runnable piece of code * @param runnable runnable piece of code
* @throws Exception * @throws Exception
*/ */
public void assertExceptionThrowed(String message, Class<? extends Exception> exceptionType, Runnable runnable) public void assertExceptionThrown(String message, Class<? extends Exception> exceptionType, Runnable runnable)
throws Exception throws Exception
{ {
Exception ex = null; Exception ex = null;

View File

@ -23,7 +23,7 @@ public class QueryTest extends AdempiereTestCase
{ {
public void testQuery_NoTable() throws Exception public void testQuery_NoTable() throws Exception
{ {
assertExceptionThrowed("", IllegalArgumentException.class, new Runnable(){ assertExceptionThrown("", IllegalArgumentException.class, new Runnable(){
public void run() public void run()
{ {
new Query(getCtx(), "NO_TABLE_DEFINED", null, getTrxName()); new Query(getCtx(), "NO_TABLE_DEFINED", null, getTrxName());
@ -115,7 +115,7 @@ public class QueryTest extends AdempiereTestCase
public void testCount_BadSQL() throws Exception public void testCount_BadSQL() throws Exception
{ {
assertExceptionThrowed(null, DBException.class, new Runnable(){ assertExceptionThrown(null, DBException.class, new Runnable(){
public void run() public void run()
{ {
new Query(getCtx(), "AD_Table", "TableName IN (?,?) AND BAD_SQL", getTrxName()) new Query(getCtx(), "AD_Table", "TableName IN (?,?) AND BAD_SQL", getTrxName())
@ -148,7 +148,7 @@ public class QueryTest extends AdempiereTestCase
.firstOnly(); .firstOnly();
assertEquals("Invalid table ID", 318, t.get_ID()); assertEquals("Invalid table ID", 318, t.get_ID());
// //
assertExceptionThrowed(null, DBException.class, new Runnable(){ assertExceptionThrown(null, DBException.class, new Runnable(){
public void run() public void run()
{ {
new Query(getCtx(), "AD_Table", "TableName IN (?,?)", getTrxName()) new Query(getCtx(), "AD_Table", "TableName IN (?,?)", getTrxName())
@ -213,14 +213,14 @@ public class QueryTest extends AdempiereTestCase
query.aggregate("LineNetAmt", Query.AGGREGATE_MAX)); query.aggregate("LineNetAmt", Query.AGGREGATE_MAX));
// //
// Test Exception : No Aggregate Function defined // Test Exception : No Aggregate Function defined
assertExceptionThrowed("No Aggregate Function defined", DBException.class, new Runnable(){ assertExceptionThrown("No Aggregate Function defined", DBException.class, new Runnable(){
public void run() public void run()
{ {
query.aggregate("*", null); query.aggregate("*", null);
}}); }});
// //
// Test Exception : No Expression defined // Test Exception : No Expression defined
assertExceptionThrowed("No Expression defined", DBException.class, new Runnable(){ assertExceptionThrown("No Expression defined", DBException.class, new Runnable(){
public void run() public void run()
{ {
query.aggregate(null, Query.AGGREGATE_SUM); query.aggregate(null, Query.AGGREGATE_SUM);