1414 * limitations under the License.
1515 */
1616package ch.petikoch.examples.mvvm_rxjava.example2
17+
1718import ch.petikoch.examples.mvvm_rxjava.datatypes.NameFirstname
1819import spock.lang.Specification
1920
@@ -37,28 +38,28 @@ class Example_2_ViewTest extends Specification {
3738 when :
3839 def name1 = ' John'
3940 def firstname1 = ' Smith'
40- executeOnAwtEdt( { testee. nameTextField. setText(name1) })
41- executeOnAwtEdt( { testee. firstnameTextField. setText(firstname1) })
41+ executeOnAwtEdt { testee. nameTextField. setText(name1) }
42+ executeOnAwtEdt { testee. firstnameTextField. setText(firstname1) }
4243 then :
4344 viewModel. v2vm_name. getValue() == name1
4445 viewModel. v2vm_firstname. getValue() == firstname1
4546
4647 when :
47- executeOnAwtEdt( { testee. submitButton. doClick() })
48+ executeOnAwtEdt { testee. submitButton. doClick() }
4849 then :
4950 viewModel. vm2m_nameFirstname. getValue() == new NameFirstname (name1, firstname1)
5051
5152 when :
5253 def name2 = ' Ben'
5354 def firstname2 = ' Boom'
54- executeOnAwtEdt( { testee. nameTextField. setText(name2) })
55- executeOnAwtEdt( { testee. firstnameTextField. setText(firstname2) })
55+ executeOnAwtEdt { testee. nameTextField. setText(name2) }
56+ executeOnAwtEdt { testee. firstnameTextField. setText(firstname2) }
5657 then :
5758 viewModel. v2vm_name. getValue() == name2
5859 viewModel. v2vm_firstname. getValue() == firstname2
5960
6061 when :
61- executeOnAwtEdt( { testee. submitButton. doClick() })
62+ executeOnAwtEdt { testee. submitButton. doClick() }
6263 then :
6364 viewModel. vm2m_nameFirstname. getValue() == new NameFirstname (name2, firstname2)
6465 }
0 commit comments