JUNIT TEST for http://adempiere.svn.sourceforge.net/adempiere/?rev=11749 &view=rev
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
parent
1175c2cab5
commit
dbe0502354
|
@ -13,13 +13,15 @@
|
|||
*****************************************************************************/
|
||||
package test.functional;
|
||||
|
||||
import org.compiere.model.MInOutLine;
|
||||
import org.compiere.model.MInvoice;
|
||||
import org.compiere.model.MInvoiceLine;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
import test.AdempiereTestCase;
|
||||
|
||||
/**
|
||||
* @author Teo Sarca, www.arhipac.ro
|
||||
* @author Teo Sarca, www.arhipac.ro //red1 reused for InvoiceLine test
|
||||
*/
|
||||
public class MInvoiceTest extends AdempiereTestCase
|
||||
{
|
||||
|
@ -44,6 +46,10 @@ public class MInvoiceTest extends AdempiereTestCase
|
|||
invoice.getLines(true); // test query
|
||||
invoice.getTaxes(true); // test query
|
||||
}
|
||||
//test MinvoiceLine getOfInOutLine
|
||||
MInOutLine iol = new MInOutLine(getCtx(),101,getTrxName()); //get InOutLine thats from InvoiceLine
|
||||
MInvoiceLine invl = MInvoiceLine.getOfInOutLine(iol);
|
||||
assertTrue("getOfInOutLine must work",invl.get_ID()>0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue