@@ -42,23 +42,23 @@ public class BuilderTest {
4242
4343 @ Test
4444 public void testDefaultSuffixes () {
45- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
45+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
4646 HumanNameParserParser parser = builder .build ();
4747 assertTrue (parser .suffixes .contains ("senior" ));
4848 assertFalse (parser .suffixes .contains ("mage" ));
4949 }
5050
5151 @ Test
5252 public void testReplacingSuffixes () {
53- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
53+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
5454 HumanNameParserParser parser = builder .withSuffixes (Arrays .asList ("mage" )).build ();
5555 assertFalse (parser .suffixes .contains ("senior" ));
5656 assertTrue (parser .suffixes .contains ("mage" ));
5757 }
5858
5959 @ Test
6060 public void testExtraSuffixes () {
61- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
61+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
6262 HumanNameParserParser parser = builder .withExtraSuffixes (Arrays .asList ("mage" )).build ();
6363 assertTrue (parser .suffixes .contains ("senior" ));
6464 assertTrue (parser .suffixes .contains ("mage" ));
@@ -68,22 +68,22 @@ public void testExtraSuffixes() {
6868
6969 @ Test
7070 public void testDefaultPrefixes () {
71- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
71+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
7272 HumanNameParserParser parser = builder .build ();
7373 assertTrue (parser .prefixes .contains ("de la" ));
7474 }
7575
7676 @ Test
7777 public void testReplacingPrefixes () {
78- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
78+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
7979 HumanNameParserParser parser = builder .withPrefixes (Arrays .asList ("sama" )).build ();
8080 assertFalse (parser .prefixes .contains ("de la" ));
8181 assertTrue (parser .prefixes .contains ("sama" ));
8282 }
8383
8484 @ Test
8585 public void testExtraPrefixes () {
86- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
86+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
8787 HumanNameParserParser parser = builder .withExtraPrefixes (Arrays .asList ("sama" )).build ();
8888 assertTrue (parser .prefixes .contains ("de la" ));
8989 assertTrue (parser .prefixes .contains ("sama" ));
@@ -93,14 +93,14 @@ public void testExtraPrefixes() {
9393
9494 @ Test
9595 public void testDefaultPostnominals () {
96- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
96+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
9797 HumanNameParserParser parser = builder .build ();
9898 assertTrue (parser .postnominals .contains ("phd" ));
9999 }
100100
101101 @ Test
102102 public void testReplacingPostnominals () {
103- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
103+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
104104 // Au.D. is one of the examples from issue #10 on GitHub
105105 HumanNameParserParser parser = builder .withPostnominals (Arrays .asList ("Au.D." )).build ();
106106 assertFalse (parser .postnominals .contains ("phd" ));
@@ -109,7 +109,7 @@ public void testReplacingPostnominals() {
109109
110110 @ Test
111111 public void testExtraPostnominals () {
112- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
112+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
113113 HumanNameParserParser parser = builder .withExtraPostnominals (Arrays .asList ("Au.D." )).build ();
114114 assertTrue (parser .postnominals .contains ("phd" ));
115115 assertTrue (parser .postnominals .contains ("Au.D." ));
@@ -119,22 +119,22 @@ public void testExtraPostnominals() {
119119
120120 @ Test
121121 public void testDefaultSalutations () {
122- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
122+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
123123 HumanNameParserParser parser = builder .build ();
124124 assertTrue (parser .salutations .contains ("judge" ));
125125 }
126126
127127 @ Test
128128 public void testReplacingSalutations () {
129- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
129+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
130130 HumanNameParserParser parser = builder .withSalutations (Arrays .asList ("sinho" )).build ();
131131 assertFalse (parser .salutations .contains ("judge" ));
132132 assertTrue (parser .salutations .contains ("sinho" ));
133133 }
134134
135135 @ Test
136136 public void testExtraSalutations () {
137- HumanNameParserBuilder builder = new HumanNameParserBuilder ("john" );
137+ HumanNameParserBuilder builder = new HumanNameParserBuilder ("john paul " );
138138 HumanNameParserParser parser = builder .withExtraSalutations (Arrays .asList ("sinho" )).build ();
139139 assertTrue (parser .salutations .contains ("judge" ));
140140 assertTrue (parser .salutations .contains ("sinho" ));
@@ -154,42 +154,42 @@ public void testConstructorFailsWithNullName() {
154154
155155 @ Test (expected = NullPointerException .class )
156156 public void testFailsToBuildWithNullSalutations1 () {
157- new HumanNameParserBuilder ("john" ).withSalutations (null ).build ();
157+ new HumanNameParserBuilder ("john paul " ).withSalutations (null ).build ();
158158 }
159159
160160 @ Test (expected = NullPointerException .class )
161161 public void testFailsToBuildWithNullSalutations2 () {
162- new HumanNameParserBuilder ("john" ).withExtraSalutations (null ).build ();
162+ new HumanNameParserBuilder ("john paul " ).withExtraSalutations (null ).build ();
163163 }
164164
165165 @ Test (expected = NullPointerException .class )
166166 public void testFailsToBuildWithNullPostnominals1 () {
167- new HumanNameParserBuilder ("john" ).withPostnominals (null ).build ();
167+ new HumanNameParserBuilder ("john paul " ).withPostnominals (null ).build ();
168168 }
169169
170170 @ Test (expected = NullPointerException .class )
171171 public void testFailsToBuildWithNullPostnominals2 () {
172- new HumanNameParserBuilder ("john" ).withExtraPostnominals (null ).build ();
172+ new HumanNameParserBuilder ("john paul " ).withExtraPostnominals (null ).build ();
173173 }
174174
175175 @ Test (expected = NullPointerException .class )
176176 public void testFailsToBuildWithNullSuffixes1 () {
177- new HumanNameParserBuilder ("john" ).withSuffixes (null ).build ();
177+ new HumanNameParserBuilder ("john paul " ).withSuffixes (null ).build ();
178178 }
179179
180180 @ Test (expected = NullPointerException .class )
181181 public void testFailsToBuildWithNullSuffixes2 () {
182- new HumanNameParserBuilder ("john" ).withExtraSuffixes (null ).build ();
182+ new HumanNameParserBuilder ("john paul " ).withExtraSuffixes (null ).build ();
183183 }
184184
185185 @ Test (expected = NullPointerException .class )
186186 public void testFailsToBuildWithNullPrefixes1 () {
187- new HumanNameParserBuilder ("john" ).withPrefixes (null ).build ();
187+ new HumanNameParserBuilder ("john paul " ).withPrefixes (null ).build ();
188188 }
189189
190190 @ Test (expected = NullPointerException .class )
191191 public void testFailsToBuildWithNullPrefixes2 () {
192- new HumanNameParserBuilder ("john" ).withExtraPrefixes (null ).build ();
192+ new HumanNameParserBuilder ("john paul " ).withExtraPrefixes (null ).build ();
193193 }
194194
195195 @ Test
0 commit comments