37 Commits
Author SHA1 Message Date
Alex Golub dd1613669e Merge branch 'master' into study-groovy 2023-01-20 20:08:17 +02:00
Alex Golub 41d8fffcc7 How to Remove a Prefix From Strings in Groovy: refactor to use spock testing framework 2023-01-20 20:04:48 +02:00
Alex Golub f6fa7f8909 A Quick Guide to Iterating a Map in Groovy: refactor to use spock testing framework 2023-01-20 19:25:34 +02:00
Alex Golub 66feff149a Lists in Groovy: refactor to use spock testing framework 2023-01-20 19:17:04 +02:00
Alex Golub 76fb5b02e0 Finding Elements in Collections in Groovy: refactor to use spock testing framework 2023-01-20 18:27:09 +02:00
Alex Golub 3512ca847f Maps in Groovy: convert to spock test framework 2023-01-20 15:01:35 +02:00
Alex Golub 46ac54b723 Categories: code reformat 2023-01-20 12:55:56 +02:00
Alex Golub cce505f381 Merge branch 'study-groovy' of https://github.com/Alex-Golub/tutorials into study-groovy 2023-01-20 12:31:42 +02:00
Alex Golub 34c282de34 Metaprogramming: Align with groovy version 3.0.8 and use spock testing framework 2023-01-20 12:28:29 +02:00
Alex Golub c333a3f359 Data Type in Groovy: align with Spock testing framework 2023-01-18 22:04:08 +02:00
Alex Golub d2eb17077f Minor fixes for Trait subject 2023-01-16 19:18:33 +02:00
Alex Golub 3d36abe4f8 Align tests with Spock testing framework 2023-01-16 19:18:33 +02:00
Alex Golub f2c9fbde81 Minor fixes for Trait subject 2023-01-15 22:13:35 +02:00
Alex Golub c34a4ac328 Reformat and single liner read* methods 2023-01-14 22:37:59 +02:00
Alex Golub f3a20f7129 Align tests with Spock testing framework 2023-01-14 22:37:59 +02:00
Alex Golub ab5c09a958 Test JsonGenerator 2023-01-14 22:37:21 +02:00
Alex Golub 85775f930a SQL queries conventions 2023-01-14 22:37:21 +02:00
Alex Golub abaa0ef7cf Bump to Groovy 3.0.8 2023-01-14 22:37:21 +02:00
Alex Golub 8861efd87a Swap these 2 arguments, so they are in the correct order: expected value, actual value 2022-04-22 21:50:24 +03:00
Alex Golub e0bdd5a62d Junit4 'assertEquals()' from 'Assert' should be replaced with JUnit5 call to method from 'org.junit.jupiter.api.Assertions' 2022-04-22 21:49:00 +03:00
Alex Golub da30a3efd7 JUnit5 test classes and methods should have default package visibility 2022-04-22 21:27:02 +03:00
Alex Golub 0e399659c1 Simplify to assertNull(Object, String) 2022-04-21 11:50:34 +03:00
Alex Golub f56a57f901 Add an explanation about why this test is skipped as value of @Disabled 2022-04-21 11:50:34 +03:00
Alex Golub 9df069c862 Typos 2022-04-21 11:50:33 +03:00
Alex Golub 4a30842e10 Explicitly create Supplier<String> to demonstrate use of assertNull(Object, Supplier<String>) method 2022-04-21 11:26:51 +03:00
Alex Golub 618c69690d Code reformat 2022-04-21 11:07:21 +03:00
Alex Golub 06c16d1eb0 JUnit5 test classes and methods should have default package visibility 2022-04-21 11:06:23 +03:00
Alex Golub 7d343f7674 assertThat(T, Matcher<? super T>) Deprecated. Use org.hamcrest.MatcherAssert.assertThat() 2022-04-21 11:05:26 +03:00
Alex Golub 95aff67d58 Method name typo 2022-04-21 10:30:44 +03:00
Alex Golub 0af6112abf Delete redundant curly braces when using single lambda statement 2022-04-21 10:30:28 +03:00
Alex Golub f1801bbd6f JUnit5 test classes and methods should have default package visibility 2022-04-21 10:29:26 +03:00
Alex Golub 7ef7265dce Method name typo 2022-04-20 14:51:58 +03:00
Alex Golub 37b5df83c5 Statement lambda can be replaced with expression lambda 2022-04-20 14:51:58 +03:00
Alex Golub 2327a11eca Assertion arguments should be passed in the correct order 2022-04-20 14:51:58 +03:00
Alex Golub efaf789e71 JUnit5 test classes and methods should have default package visibility 2022-04-20 14:51:58 +03:00
Alex Golub d722c0d1d1 Reformat
Put each assertion on separate line to improve readability
Explain why test is marked @Disabled
2022-04-20 13:57:15 +03:00
Alex Golub 73e2047689 Use the default package visibility and optimize imports 2022-04-20 13:50:30 +03:00