@@ -125,22 +125,22 @@ void shouldRenderSimpleReturn() {
125125 void shouldRenderConditionalLongReturn () {
126126
127127 CodeBlock block = LordOfTheStrings .returning (Long .class ).whenLong ("1L" ).whenBoxedLong ("$T.valueOf(1)" , Long .class )
128- .otherwise ("😫 " ).build ();
128+ .otherwise (":-[ " ).build ();
129129 assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
130130
131131 block = LordOfTheStrings .returning (Long .class ).whenBoxedLong ("$T.valueOf(1)" , Long .class ).whenLong ("1L" )
132- .otherwise ("😫 " ).build ();
132+ .otherwise (":-[ " ).build ();
133133 assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
134134
135135 block = LordOfTheStrings .returning (long .class ).whenBoxedLong ("$T.valueOf(1)" , Long .class ).whenLong ("1L" )
136- .otherwise ("😫 " ).build ();
136+ .otherwise (":-[ " ).build ();
137137 assertThat (block ).hasToString ("return 1L" );
138138
139- block = LordOfTheStrings .returning (Long .class ).whenBoxed (Long .class , "$T.valueOf(1)" , Long .class ).otherwise ("😫 " )
139+ block = LordOfTheStrings .returning (Long .class ).whenBoxed (Long .class , "$T.valueOf(1)" , Long .class ).otherwise (":-[ " )
140140 .build ();
141141 assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
142142
143- block = LordOfTheStrings .returning (Long .class ).whenBoxed (long .class , "$T.valueOf(1)" , Long .class ).otherwise ("😫 " )
143+ block = LordOfTheStrings .returning (Long .class ).whenBoxed (long .class , "$T.valueOf(1)" , Long .class ).otherwise (":-[ " )
144144 .build ();
145145 assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
146146 }
@@ -149,44 +149,44 @@ void shouldRenderConditionalLongReturn() {
149149 void shouldRenderConditionalIntReturn () {
150150
151151 CodeBlock block = LordOfTheStrings .returning (Integer .class ).whenBoxed (long .class , "$T.valueOf(1)" , Long .class )
152- .otherwise ("😫 " ).build ();
153- assertThat (block ).hasToString ("return 😫 " );
152+ .otherwise (":-[ " ).build ();
153+ assertThat (block ).hasToString ("return :-[ " );
154154
155- block = LordOfTheStrings .returning (Integer .class ).whenBoxedInteger ("$T.valueOf(1)" , Integer .class ).otherwise ("😫 " )
155+ block = LordOfTheStrings .returning (Integer .class ).whenBoxedInteger ("$T.valueOf(1)" , Integer .class ).otherwise (":-[ " )
156156 .build ();
157157 assertThat (block ).hasToString ("return java.lang.Integer.valueOf(1)" );
158158
159159 block = LordOfTheStrings .returning (int .class ).whenBoxedInteger ("$T.valueOf(1)" , Integer .class ).whenInt ("1" )
160- .otherwise ("😫 " ).build ();
160+ .otherwise (":-[ " ).build ();
161161 assertThat (block ).hasToString ("return 1" );
162162 }
163163
164164 @ Test // GH-3357
165165 void shouldRenderConditionalBooleanReturn () {
166166
167- CodeBlock block = LordOfTheStrings .returning (boolean .class ).whenBoolean ("$L" , true ).otherwise ("😫 " ).build ();
167+ CodeBlock block = LordOfTheStrings .returning (boolean .class ).whenBoolean ("$L" , true ).otherwise (":-[ " ).build ();
168168 assertThat (block ).hasToString ("return true" );
169169
170- block = LordOfTheStrings .returning (Boolean .class ).whenBoolean ("$L" , true ).otherwise ("😫 " ).build ();
170+ block = LordOfTheStrings .returning (Boolean .class ).whenBoolean ("$L" , true ).otherwise (":-[ " ).build ();
171171 assertThat (block ).hasToString ("return true" );
172172 }
173173
174174 @ Test // GH-3357
175175 void shouldRenderConditionalNumericReturn () {
176176
177- CodeBlock block = LordOfTheStrings .returning (boolean .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
178- assertThat (block ).hasToString ("return 😫 " );
177+ CodeBlock block = LordOfTheStrings .returning (boolean .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
178+ assertThat (block ).hasToString ("return :-[ " );
179179
180- block = LordOfTheStrings .returning (long .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
180+ block = LordOfTheStrings .returning (long .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
181181 assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.longValue() : 0L" );
182182
183- block = LordOfTheStrings .returning (Long .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
183+ block = LordOfTheStrings .returning (Long .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
184184 assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.longValue() : null" );
185185
186- block = LordOfTheStrings .returning (int .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
186+ block = LordOfTheStrings .returning (int .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
187187 assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.intValue() : 0" );
188188
189- block = LordOfTheStrings .returning (Integer .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
189+ block = LordOfTheStrings .returning (Integer .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
190190 assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.intValue() : null" );
191191 }
192192
0 commit comments