More detailed logging in test

This commit is contained in:
Roman Shevchenko
2012-02-08 17:19:13 +01:00
parent 7308017742
commit 94337dae20
2 changed files with 5 additions and 4 deletions
@@ -77,10 +77,10 @@ public class FieldPropertyTest extends IncrementalTestCase {
}
public void testNonIncremental1() throws Exception {
doTest();
doTest();
}
public void testNonIncremental2() throws Exception {
doTest();
doTest();
}
}
@@ -20,7 +20,6 @@ import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.io.FileUtil;
import junit.framework.TestCase;
import junitx.framework.FileAssert;
import org.apache.log4j.Level;
import org.apache.log4j.PropertyConfigurator;
import org.jetbrains.annotations.NonNls;
@@ -342,7 +341,9 @@ public abstract class IncrementalTestCase extends TestCase {
new AllProjectScope(project, Collections.<Artifact>emptySet(), false), true, false
);
FileAssert.assertEquals(new File(getBaseDir() + ".log"), new File(getWorkDir() + ".log"));
final String expected = FileUtil.loadFile(new File(getBaseDir() + ".log"));
final String actual = FileUtil.loadFile(new File(getWorkDir() + ".log"));
assertEquals(expected, actual);
}
finally {
projectDescriptor.release();