comp-vision-group-cw / src / test / java / uk / ac / soton / ecs / zmk1g19 / AppTest.java
AppTest.java
Raw
package uk.ac.soton.ecs.zmk1g19;

import static org.junit.Assert.*;

import org.junit.BeforeClass;
import org.junit.Test;
import org.openimaj.data.dataset.VFSGroupDataset;
import org.openimaj.data.dataset.VFSListDataset;
import org.openimaj.image.FImage;
import org.openimaj.image.ImageUtilities;
import uk.ac.soton.ecs.zmk1g19.utils.DatasetEmbiggener;

import java.nio.file.FileSystems;
import java.nio.file.Path;

/**
 * Unit test for simple App.
 */
public class AppTest {
    /**
     * Rigourous Test :-)
     */
    @BeforeClass
    public static void setUpBeforeClass() throws Exception {

    }

    /**
     * Test for Run1
     */
    @Test
    public void testRun1() {
        VFSGroupDataset<FImage> training;
        VFSListDataset<FImage> testing;
        Path dir = FileSystems.getDefault().getPath("").toAbsolutePath();
        // DatasetEmbiggener.transformImages();
        //import images from folders
        try {
            training = new VFSGroupDataset<>(dir + "/training", ImageUtilities.FIMAGE_READER);
            testing = new VFSListDataset<>(dir + "/testing", ImageUtilities.FIMAGE_READER);
        } catch (Exception e) {
            e.printStackTrace();
            return;
        }
        //Run1.run(training, testing);

        assertTrue(true);
    }

    /**
     * Test for Run2
     */
    @Test
    public void testRun2(){
        //Run2.run(training, testing);
        assertTrue(true);
    }


    /**
     * Test for Run2
     */
    @Test
    public void testRun3(){
        //Run3.run(training, testing);
        assertTrue(true);
    }
}