@@ -125,22 +125,22 @@ void shouldRenderSimpleReturn() {
125
125
void shouldRenderConditionalLongReturn () {
126
126
127
127
CodeBlock block = LordOfTheStrings .returning (Long .class ).whenLong ("1L" ).whenBoxedLong ("$T.valueOf(1)" , Long .class )
128
- .otherwise ("😫 " ).build ();
128
+ .otherwise (":-[ " ).build ();
129
129
assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
130
130
131
131
block = LordOfTheStrings .returning (Long .class ).whenBoxedLong ("$T.valueOf(1)" , Long .class ).whenLong ("1L" )
132
- .otherwise ("😫 " ).build ();
132
+ .otherwise (":-[ " ).build ();
133
133
assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
134
134
135
135
block = LordOfTheStrings .returning (long .class ).whenBoxedLong ("$T.valueOf(1)" , Long .class ).whenLong ("1L" )
136
- .otherwise ("😫 " ).build ();
136
+ .otherwise (":-[ " ).build ();
137
137
assertThat (block ).hasToString ("return 1L" );
138
138
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 (":-[ " )
140
140
.build ();
141
141
assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
142
142
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 (":-[ " )
144
144
.build ();
145
145
assertThat (block ).hasToString ("return java.lang.Long.valueOf(1)" );
146
146
}
@@ -149,44 +149,44 @@ void shouldRenderConditionalLongReturn() {
149
149
void shouldRenderConditionalIntReturn () {
150
150
151
151
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 :-[ " );
154
154
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 (":-[ " )
156
156
.build ();
157
157
assertThat (block ).hasToString ("return java.lang.Integer.valueOf(1)" );
158
158
159
159
block = LordOfTheStrings .returning (int .class ).whenBoxedInteger ("$T.valueOf(1)" , Integer .class ).whenInt ("1" )
160
- .otherwise ("😫 " ).build ();
160
+ .otherwise (":-[ " ).build ();
161
161
assertThat (block ).hasToString ("return 1" );
162
162
}
163
163
164
164
@ Test // GH-3357
165
165
void shouldRenderConditionalBooleanReturn () {
166
166
167
- CodeBlock block = LordOfTheStrings .returning (boolean .class ).whenBoolean ("$L" , true ).otherwise ("😫 " ).build ();
167
+ CodeBlock block = LordOfTheStrings .returning (boolean .class ).whenBoolean ("$L" , true ).otherwise (":-[ " ).build ();
168
168
assertThat (block ).hasToString ("return true" );
169
169
170
- block = LordOfTheStrings .returning (Boolean .class ).whenBoolean ("$L" , true ).otherwise ("😫 " ).build ();
170
+ block = LordOfTheStrings .returning (Boolean .class ).whenBoolean ("$L" , true ).otherwise (":-[ " ).build ();
171
171
assertThat (block ).hasToString ("return true" );
172
172
}
173
173
174
174
@ Test // GH-3357
175
175
void shouldRenderConditionalNumericReturn () {
176
176
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 :-[ " );
179
179
180
- block = LordOfTheStrings .returning (long .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
180
+ block = LordOfTheStrings .returning (long .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
181
181
assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.longValue() : 0L" );
182
182
183
- block = LordOfTheStrings .returning (Long .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
183
+ block = LordOfTheStrings .returning (Long .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
184
184
assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.longValue() : null" );
185
185
186
- block = LordOfTheStrings .returning (int .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
186
+ block = LordOfTheStrings .returning (int .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
187
187
assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.intValue() : 0" );
188
188
189
- block = LordOfTheStrings .returning (Integer .class ).number ("someNumericVariable" ).otherwise ("😫 " ).build ();
189
+ block = LordOfTheStrings .returning (Integer .class ).number ("someNumericVariable" ).otherwise (":-[ " ).build ();
190
190
assertThat (block ).hasToString ("return someNumericVariable != null ? someNumericVariable.intValue() : null" );
191
191
}
192
192
0 commit comments