package org.pih.warehouse.importer

import org.apache.commons.lang.StringUtils
import org.junit.Ignore
import org.junit.Test
import org.pih.warehouse.product.Product
import org.springframework.core.io.ClassPathResource
import org.springframework.core.io.Resource

@Ignore
class PurchaseOrderExcelImporterTests extends GroovyTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    @Test
    void testSomething() {
        Resource resource = new ClassPathResource("resources/purchaseOrders.xls")
        def file = resource.getFile()
        assert file.exists()

        def importer = new PurchaseOrderExcelImporter(file.absolutePath)
        def data = importer.data
        assert data != null

        println data
    }
}
