Skip to content

Commit a7ffcab

Browse files
committed
Remove redundant keywords
1 parent dbe8f00 commit a7ffcab

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

src/test/java/org/apache/commons/codec/language/NysiisTest.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ public void testBran() {
6262

6363
@Test
6464
public void testCap() {
65-
this.encodeAll(new String[] { "Capp", "Cope", "Copp", "Kipp" }, "CAP");
65+
encodeAll(new String[] { "Capp", "Cope", "Copp", "Kipp" }, "CAP");
6666
}
6767

6868
@Test
6969
public void testDad() {
7070
// Data Quality and Record Linkage Techniques P.121 claims this is DAN,
7171
// but it should be DAD, verified also with dropby.com
72-
this.encodeAll(new String[] { "Dent" }, "DAD");
72+
encodeAll(new String[] { "Dent" }, "DAD");
7373
}
7474

7575
@Test
7676
public void testDan() {
77-
this.encodeAll(new String[] { "Dane", "Dean", "Dionne" }, "DAN");
77+
encodeAll(new String[] { "Dane", "Dean", "Dionne" }, "DAN");
7878
}
7979

8080
/**
@@ -87,7 +87,7 @@ public void testDropBy() {
8787
// prepended to the test string. The referenced rules refer to the outlined steps the
8888
// class description for Nysiis.
8989

90-
this.assertEncodings(
90+
assertEncodings(
9191
// 1. Transcode first characters of name
9292
new String[] { "MACINTOSH", "MCANT" },
9393
// violates 4j: the second N should not be added, as the first
@@ -141,14 +141,14 @@ public void testDropBy() {
141141

142142
@Test
143143
public void testFal() {
144-
this.encodeAll(new String[] { "Phil" }, "FAL");
144+
encodeAll(new String[] { "Phil" }, "FAL");
145145
}
146146

147147
/**
148148
* Tests data gathered from around the internets.*/
149149
@Test
150150
public void testOthers() {
151-
this.assertEncodings(
151+
assertEncodings(
152152
new String[] { "O'Daniel", "ODANAL" },
153153
new String[] { "O'Donnel", "ODANAL" },
154154
new String[] { "Cory", "CARY" },
@@ -162,7 +162,7 @@ public void testOthers() {
162162
* Tests rule 1: Translate first characters of name: MAC → MCC, KN → N, K → C, PH, PF → FF, SCH → SSS*/
163163
@Test
164164
public void testRule1() {
165-
this.assertEncodings(
165+
assertEncodings(
166166
new String[] { "MACX", "MCX" },
167167
new String[] { "KNX", "NX" },
168168
new String[] { "KX", "CX" },
@@ -175,7 +175,7 @@ public void testRule1() {
175175
* Tests rule 2: Translate last characters of name: EE → Y, IE → Y, DT, RT, RD, NT, ND → D*/
176176
@Test
177177
public void testRule2() {
178-
this.assertEncodings(
178+
assertEncodings(
179179
new String[] { "XEE", "XY" },
180180
new String[] { "XIE", "XY" },
181181
new String[] { "XDT", "XD" },
@@ -189,7 +189,7 @@ public void testRule2() {
189189
* Tests rule 4.1: EV → AF else A, E, I, O, U → A*/
190190
@Test
191191
public void testRule4Dot1() {
192-
this.assertEncodings(
192+
assertEncodings(
193193
new String[] { "XEV", "XAF" },
194194
new String[] { "XAX", "XAX" },
195195
new String[] { "XEX", "XAX" },
@@ -202,7 +202,7 @@ public void testRule4Dot1() {
202202
* Tests rule 4.2: Q → G, Z → S, M → N*/
203203
@Test
204204
public void testRule4Dot2() {
205-
this.assertEncodings(
205+
assertEncodings(
206206
new String[] { "XQ", "XG" },
207207
new String[] { "XZ", "X" },
208208
new String[] { "XM", "XN" });
@@ -212,7 +212,7 @@ public void testRule4Dot2() {
212212
* Tests rule 5: If last character is S, remove it.*/
213213
@Test
214214
public void testRule5() {
215-
this.assertEncodings(
215+
assertEncodings(
216216
new String[] { "XS", "X" },
217217
new String[] { "XSS", "X" });
218218
}
@@ -221,7 +221,7 @@ public void testRule5() {
221221
* Tests rule 6: If last characters are AY, replace with Y.*/
222222
@Test
223223
public void testRule6() {
224-
this.assertEncodings(
224+
assertEncodings(
225225
new String[] { "XAY", "XY" },
226226
new String[] { "XAYS", "XY" }); // Rules 5, 6
227227
}
@@ -230,36 +230,36 @@ public void testRule6() {
230230
* Tests rule 7: If last character is A, remove it.*/
231231
@Test
232232
public void testRule7() {
233-
this.assertEncodings(
233+
assertEncodings(
234234
new String[] { "XA", "X" },
235235
new String[] { "XAS", "X" }); // Rules 5, 7
236236
}
237237
@Test
238238
public void testSnad() {
239239
// Data Quality and Record Linkage Techniques P.121 claims this is SNAT,
240240
// but it should be SNAD
241-
this.encodeAll(new String[] { "Schmidt" }, "SNAD");
241+
encodeAll(new String[] { "Schmidt" }, "SNAD");
242242
}
243243

244244
@Test
245245
public void testSnat() {
246-
this.encodeAll(new String[] { "Smith", "Schmit" }, "SNAT");
246+
encodeAll(new String[] { "Smith", "Schmit" }, "SNAT");
247247
}
248248

249249
@Test
250250
public void testSpecialBranches() {
251-
this.encodeAll(new String[] { "Kobwick" }, "CABWAC");
252-
this.encodeAll(new String[] { "Kocher" }, "CACAR");
253-
this.encodeAll(new String[] { "Fesca" }, "FASC");
254-
this.encodeAll(new String[] { "Shom" }, "SAN");
255-
this.encodeAll(new String[] { "Ohlo" }, "OL");
256-
this.encodeAll(new String[] { "Uhu" }, "UH");
257-
this.encodeAll(new String[] { "Um" }, "UN");
251+
encodeAll(new String[] { "Kobwick" }, "CABWAC");
252+
encodeAll(new String[] { "Kocher" }, "CACAR");
253+
encodeAll(new String[] { "Fesca" }, "FASC");
254+
encodeAll(new String[] { "Shom" }, "SAN");
255+
encodeAll(new String[] { "Ohlo" }, "OL");
256+
encodeAll(new String[] { "Uhu" }, "UH");
257+
encodeAll(new String[] { "Um" }, "UN");
258258
}
259259

260260
@Test
261261
public void testTranan() {
262-
this.encodeAll(new String[] { "Trueman", "Truman" }, "TRANAN");
262+
encodeAll(new String[] { "Trueman", "Truman" }, "TRANAN");
263263
}
264264

265265
@Test

0 commit comments

Comments
 (0)