Minor file name refactoring for tests

This commit is contained in:
cheptsov 2013-02-28 19:04:17 +04:00
parent c92d599ff8
commit 3116204329
8 changed files with 32 additions and 6 deletions

View File

@ -0,0 +1,13 @@
# You are reading the ".properties" entry.
! The exclamation mark can also mark text as comments.
website = http://en.wikipedia.org/
language = English
# The backslash below tells the application to continue reading
# the value onto the next line.
message = Welcome to \
Wikipedia!
# Add spaces to the key
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
# Unicode
tab : \u0009

View File

@ -0,0 +1,13 @@
# You are reading the ".properties" entry.
! The exclamation mark can also mark text as comments.
website = http://en.wikipedia.org/
language = English
# The backslash below tells the application to continue reading
# the value onto the next line.
message = Welcome to \
Wikipedia!
# Add spaces to the key
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
# Unicode
tab : \u0009

View File

@ -31,17 +31,17 @@ public class SimpleCodeInsightTest extends LightCodeInsightFixtureTestCase {
}
public void testAnnotator() {
myFixture.configureByFiles("AnnotationTest.java", "Example.simple");
myFixture.configureByFiles("AnnotatorTestData.java", "Example.simple");
myFixture.checkHighlighting(false, false, true);
}
public void testFolding() {
myFixture.configureByFiles("Example.simple");
myFixture.configureByFiles("FoldingTestData.simple");
myFixture.testFolding(getTestDataPath() + "/FoldingTestData.java");
}
public void testFormatting() {
myFixture.configureByFiles("FormattingTestData.simple");
public void testFormatter() {
myFixture.configureByFiles("FormatterTestDataBefore.simple");
CodeStyleSettingsManager.getSettings(getProject()).SPACE_AROUND_ASSIGNMENT_OPERATORS = true;
ApplicationManager.getApplication().runWriteAction(new Runnable() {
@Override
@ -49,7 +49,7 @@ public class SimpleCodeInsightTest extends LightCodeInsightFixtureTestCase {
CodeStyleManager.getInstance(getProject()).reformat(myFixture.getFile());
}
});
myFixture.checkResultByFile("Example.simple");
myFixture.checkResultByFile("FormatterTestDataAfter.simple");
}
public void testRename() {

View File

@ -7,7 +7,7 @@ public class SimpleParsingTest extends ParsingTestCase {
super("", "simple", new SimpleParserDefinition());
}
public void testExample() {
public void testParsingTestData() {
doTest(true, false);
}