package org.burroloco.demo.jdbc2csv;

import au.net.netstorm.boost.sniper.marker.Destroyable;
import au.net.netstorm.boost.sniper.marker.HasFixtures;
import au.net.netstorm.boost.spider.api.runtime.Nu;
import org.burroloco.test.butcher.fixture.database.InputDatabase;
import org.burroloco.donkey.trebuchet.Trebuchet;
import org.burroloco.test.glue.testcase.DonkeyTestCase;
import org.burroloco.test.util.io.FileComparator;

import java.io.File;

public class JdbcToCsvDemoTest extends DonkeyTestCase implements HasFixtures, Destroyable {
    private static final File EXPECTED = new File("data/expected/employee.csv");
    private static final File ACTUAL = new File("gen/demo/out/employee.csv");
    FileComparator comparator;
    InputDatabase database;
    Trebuchet trebuchet;
    Nu nu;

    public void fixtures() {
        database.create();
    }

    public void testJdbcToCvs() {
        trebuchet.launch(JdbcToCsvSpecification.class);
        comparator.assertEquals(EXPECTED, ACTUAL);
    }

    public void destroy() {
        database.drop();
    }
}

@@ -154,51 +154,48 @@
 ort 
-au.net.netst
 or
-m.boost.spider.api.runtime.Nu
+g.burroloco.donkey.trebuchet.Trebuchet
 ;%0Aim
@@ -262,57 +262,8 @@
 se;%0A
-import org.burroloco.donkey.trebuchet.Trebuchet;%0A
 impo
@@ -730,15 +730,8 @@
     
-Nu nu;%0A
 %0A   

Simplified error handling.