Importing Unit Test to Openbravo IDE

  1. turn off build automatically
  2. click file || import, then choose folder scr-test
  3. right click on project OpenbravoTest, then select properties
    1. on tab project, add project openbravo
    2. on tab libraries, add 2 libraries, taken from openbravo/lib/test: hamcrest dan junit
    3. click ok
  4. create symbolic link for folder modules inside src-tes, using terminal, on folder src-test, type ln -s ../modules .
  5. right click on OpenbravoTest project, select referesh
  6. right click on OpenbravoTest, select new || source folder, then select folder modules/org.openbravo.advpaymentmngt/src-test, click OK
  7. now you can see src-test inside org.openbravo.advpaymentmngt module now imported in OpenbravoTest, OBBaseTest have been imported, so you can create another unit test class derived form OBBaseTest

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s