use of org.adempiere.mm.attributes.api.impl.AttributesTestHelper in project metasfresh-webui-api by metasfresh.
the class AvailableToPromiseAdapterTests method init.
@Before
public void init() {
AdempiereTestHelper.get().init();
final AvailableToPromiseRepository stockRepository = new AvailableToPromiseRepository();
attributesTestHelper = new AttributesTestHelper();
availableToPromiseAdapter = new AvailableToPromiseAdapter(stockRepository);
}
use of org.adempiere.mm.attributes.api.impl.AttributesTestHelper in project metasfresh-webui-api by metasfresh.
the class MaterialCockpitRowFactoryTest method init.
@BeforeEach
public void init() {
AdempiereTestHelper.get().init();
attributesTestHelper = new AttributesTestHelper();
final I_M_Product_Category productCategory = newInstance(I_M_Product_Category.class);
productCategory.setName("productCategoryName");
save(productCategory);
final I_C_UOM uom = newInstance(I_C_UOM.class);
saveRecord(uom);
product = newInstance(I_M_Product.class);
product.setValue("productValue");
product.setName("productName");
product.setIsStocked(true);
product.setC_UOM_ID(uom.getC_UOM_ID());
product.setM_Product_Category_ID(productCategory.getM_Product_Category_ID());
save(product);
attr1 = attributesTestHelper.createM_Attribute("test1", X_M_Attribute.ATTRIBUTEVALUETYPE_List, true);
attr1_value1 = attributesTestHelper.createM_AttributeValue(attr1, "test1_value1");
attr2 = attributesTestHelper.createM_Attribute("test21", X_M_Attribute.ATTRIBUTEVALUETYPE_List, true);
attr2_value1 = attributesTestHelper.createM_AttributeValue(attr2, "test2_value1");
attr2_value2 = attributesTestHelper.createM_AttributeValue(attr2, "test2_value2");
initDimenstionSpec();
materialCockpitRowFactory = new MaterialCockpitRowFactory();
}
Aggregations