Minor refactoring in tests
This commit is contained in:
@@ -23,8 +23,6 @@ import java.io.IOException;
|
|||||||
|
|
||||||
public abstract class AbstractCodegenTest extends CodegenTestCase {
|
public abstract class AbstractCodegenTest extends CodegenTestCase {
|
||||||
|
|
||||||
private static final String REDUNDANT_PATH_PREFIX = "compiler/testData/codegen";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
@@ -32,7 +30,6 @@ public abstract class AbstractCodegenTest extends CodegenTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void doTest(String path) throws IOException {
|
protected void doTest(String path) throws IOException {
|
||||||
String relativePath = path.substring(REDUNDANT_PATH_PREFIX.length());
|
blackBoxFileByFullPath(path);
|
||||||
blackBoxFile(relativePath);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user