Lines 144-163
Link Here
|
144 |
|
144 |
|
145 |
@Test |
145 |
@Test |
146 |
public void testEmptyMode() throws Exception { |
146 |
public void testEmptyMode() throws Exception { |
147 |
params.add(new CompoundVariable("ab-CD eF")); |
147 |
params.add(new CompoundVariable("ab_ -CD eF")); |
148 |
params.add(new CompoundVariable("")); |
148 |
params.add(new CompoundVariable("")); |
149 |
changeCase.setParameters(params); |
149 |
changeCase.setParameters(params); |
150 |
String returnValue = changeCase.execute(result, null); |
150 |
String returnValue = changeCase.execute(result, null); |
151 |
assertEquals("AB-CD EF", returnValue); |
151 |
assertEquals("AB_ -CD EF", returnValue); |
152 |
} |
152 |
} |
153 |
|
153 |
|
154 |
@Test |
154 |
@Test |
155 |
public void testChangeCaseWrongModeIgnore() throws Exception { |
155 |
public void testChangeCaseWrongModeIgnore() throws Exception { |
156 |
params.add(new CompoundVariable("ab-CD eF")); |
156 |
params.add(new CompoundVariable("ab-CD eF")); |
157 |
params.add(new CompoundVariable("Wrong")); |
157 |
params.add(new CompoundVariable("Wrong")); |
|
|
158 |
changeCase.setParameters(params); |
159 |
String returnValue = changeCase.execute(result, null); |
160 |
assertEquals("ab-CD eF", returnValue); |
161 |
} |
162 |
|
163 |
@Test |
164 |
public void testChangeCaseNonEnglish() throws Exception { |
165 |
params.add(new CompoundVariable("ab-àÀè_È é É ù Ù ì Ì ò Ò ñ ÑäöüßCD eF")); |
166 |
params.add(new CompoundVariable("LOWER_CAMEL_CASE")); |
158 |
changeCase.setParameters(params); |
167 |
changeCase.setParameters(params); |
159 |
String returnValue = changeCase.execute(result, null); |
168 |
String returnValue = changeCase.execute(result, null); |
160 |
assertEquals("ab-CD eF", returnValue); |
169 |
assertEquals("abÀàèÈÉÉÙÙÌÌÒÒÑÑäöüßcdEf", returnValue); |
161 |
} |
170 |
} |
162 |
|
171 |
|
163 |
} |
172 |
} |