Clean up after test
@@ -3,11 +3,13 @@ package com.yahoo.searchdefinition.derived;
import com.yahoo.config.model.application.provider.MockFileRegistry;
import com.yahoo.config.model.deploy.TestProperties;
+import com.yahoo.io.IOUtils;
import com.yahoo.searchdefinition.RankProfileRegistry;
import com.yahoo.searchdefinition.SearchBuilder;
import com.yahoo.searchdefinition.parser.ParseException;
import org.junit.Test;
+import java.io.File;
import java.io.IOException;
/**
@@ -17,6 +19,7 @@ public class SchemaInheritanceTestCase extends AbstractExportingTestCase {
@Test
public void testIt() throws IOException, ParseException {
+ try {
SearchBuilder builder = SearchBuilder.createFromDirectory("src/test/derived/schemainheritance/",
new MockFileRegistry(),
new TestableDeployLogger(),
@@ -24,5 +27,9 @@ public class SchemaInheritanceTestCase extends AbstractExportingTestCase {
derive("schemainheritance", builder, builder.getSearch("child"));
assertCorrectConfigFiles("schemainheritance");
}
+ finally {
+ IOUtils.recursiveDeleteDir(new File("src/test/derived/schemainheritance/models.generated/"));
+ }
+ }
}
