@@ -0,0 +1,1234 @@
+package boa.test.datagen;%0A%0Aimport org.apache.commons.io.FileUtils;%0Aimport org.junit.Test;%0A%0Aimport boa.datagen.util.FileIO;%0Aimport boa.evaluator.BoaEvaluator;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertArrayEquals;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0A%0Apublic class TestQueries %7B%0A%09%0A%09@Test%0A%09public void testNullCheck() %7B%0A%09%09%0A%09String%5B%5D args = %7B %22-i%22,  %22/Users/roberts/git/compiler/test/known-good/bug-fix.boa%22, %0A%09%09%09%09%09  %22-d%22, %22/Users/roberts/git/compiler/test/datagen/test_datagen%22,%0A%09%09%09%09%09  %22-o%22, %22/Users/roberts/git/compiler/test/datagen/output%22%7D;%09%0A%09BoaEvaluator.main(args);%09%0A%09String expected = %22AddedNullCheck%5B%5D = 1%5Cn%22;%0A%09File outputDir = new File( %22/Users/roberts/git/compiler/test/datagen/output%22);%0A%09String actual =  getResults(outputDir);// evaluator.getResults();%0A%09try %7B%0A%09%09FileUtils.deleteDirectory(outputDir);%0A%09%7D catch (IOException e) %7B%0A%09%09// TODO Auto-generated catch block%0A%09%09e.printStackTrace();%0A%09%7D%0A%09assertEquals(expected, actual);%0A%09%7D%0A%09%0A%09public String getResults(File outputDir) %7B%0A%09%09for (final File f :  outputDir.listFiles()) %7B%0A%09%09%09if (f.getName().startsWith(%22part%22)) %7B%0A%09%09%09%09return FileIO.readFileContents(f);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return %22%22;%0A%09%7D%0A%7D%0A

Test bug-fix query