Skip to content

Commit a3724d7

Browse files
committed
Address review comments from Alex
1 parent 259d9cf commit a3724d7

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

tests/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,33 @@ public void setUp() throws Exception {
6060
public class TestClass1 {
6161
6262
public static void main(String[] args) {
63-
System.out.println(\"I will be printing Hello world!\");
63+
System.out.println("I will be printing Hello world!");
6464
}
6565
}""");
6666
documents[1]= new Document("This is a simple text file\n" +
6767
"with some testssome test that is also used in the completion engine tests");
6868

6969
documents[2]= new Document("""
70-
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
70+
<?xml version="1.0" encoding="UTF-8"?>
7171
<plugin
72-
id=\"org.eclipse.ui.workbench.texteditor.tests\"
73-
name=\"%Plugin.name\"
74-
version=\"3.1.0\"
75-
provider-name=\"%Plugin.providerName\">
72+
id="org.eclipse.ui.workbench.texteditor.tests"
73+
name="%Plugin.name"
74+
version="3.1.0"
75+
provider-name="%Plugin.providerName">
7676
7777
<runtime>
78-
<library name=\"workbenchtexteditortests.jar\">
79-
<export name=\"*\"/>
78+
<library name="workbenchtexteditortests.jar">
79+
<export name="*"/>
8080
</library>
8181
</runtime>
8282
\u0020
8383
<requires>
84-
<import plugin=\"org.eclipse.core.runtime.compatibility\"/>
85-
<import plugin=\"org.junit\"/>
86-
<import plugin=\"org.eclipse.text.tests\"/>
87-
<import plugin=\"org.eclipse.jface.text\"/>
88-
<import plugin=\"org.eclipse.ui.workbench.texteditor\"/>
89-
<import plugin=\"org.eclipse.ui\"/>
84+
<import plugin="org.eclipse.core.runtime.compatibility"/>
85+
<import plugin="org.junit"/>
86+
<import plugin="org.eclipse.text.tests"/>
87+
<import plugin="org.eclipse.jface.text"/>
88+
<import plugin="org.eclipse.ui.workbench.texteditor"/>
89+
<import plugin="org.eclipse.ui"/>
9090
</requires>
9191
\u0020
9292
</plugin>

tests/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,23 @@ public void testRemoveSecondLine() throws Exception {
128128

129129
@Test
130130
public void testAddFirstLine() throws Exception {
131-
int[] diffInfo= new int[] {A, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, };
131+
int[] diffInfo= new int[] {A, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, };
132132
int[] expected= {0, 1, 0};
133133

134134
assertHunks(diffInfo, expected);
135135
}
136136

137137
@Test
138138
public void testAddSecondLine() throws Exception {
139-
int[] diffInfo= new int[] {U, 0, A, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, };
139+
int[] diffInfo= new int[] {U, 0, A, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, };
140140
int[] expected= {1, 1, 0};
141141

142142
assertHunks(diffInfo, expected);
143143
}
144144

145145
@Test
146146
public void testAddThirdLine() throws Exception {
147-
int[] diffInfo= new int[] {U, 0, U, 0, A, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, };
147+
int[] diffInfo= new int[] {U, 0, U, 0, A, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, U, 0, };
148148
int[] expected= {2, 1, 0};
149149

150150
assertHunks(diffInfo, expected);

0 commit comments

Comments
 (0)