Adempiere 3.5.2a

test
Class AdempiereTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.AdempiereTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AlertTest, MBPartnerLocationTest, MBPartnerTest, MBPGroupTest, MLocationTest, MProductTest, MRefListTest, MSessionTest, MStorageTest, MSysConfigTest, MUOMTest, MUserTest, PackOutTest, POTest, QueryTest, TrifonTest

public class AdempiereTestCase
extends junit.framework.TestCase

ADempiere Base Test Case

Author:
Teo Sarca

Field Summary
 String AD_Client_ID_Key
           
 String AD_User_ID_Key
           
 String fileName_Key
           
 String isClient_Key
           
 String LogLevel_Key
           
protected  Properties testProperties
           
 
Constructor Summary
AdempiereTestCase()
           
 
Method Summary
protected  void commit()
          Commit active transaction
 int getAD_Client_ID()
           
 int getAD_User_ID()
           
 Properties getCtx()
           
 String getTrxName()
           
 boolean isClient()
           
protected  void rollback()
          Rollback active transaction
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testProperties

protected Properties testProperties

fileName_Key

public final String fileName_Key
See Also:
Constant Field Values

isClient_Key

public final String isClient_Key
See Also:
Constant Field Values

AD_User_ID_Key

public final String AD_User_ID_Key
See Also:
Constant Field Values

AD_Client_ID_Key

public final String AD_Client_ID_Key
See Also:
Constant Field Values

LogLevel_Key

public final String LogLevel_Key
See Also:
Constant Field Values
Constructor Detail

AdempiereTestCase

public AdempiereTestCase()
Method Detail

getCtx

public Properties getCtx()
Returns:
environment context

getTrxName

public String getTrxName()
Returns:
active transaction name

getAD_Client_ID

public int getAD_Client_ID()
Returns:
client id

getAD_User_ID

public int getAD_User_ID()
Returns:
user id

isClient

public boolean isClient()
Returns:
is running as client

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

commit

protected void commit()
               throws Exception
Commit active transaction

Throws:
Exception

rollback

protected void rollback()
Rollback active transaction


tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.