mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 12:59:54 +00:00
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@@ -40,7 +40,7 @@ public class HalflingThiefTest {
|
||||
* Verify if the thief uses the provided stealing method
|
||||
*/
|
||||
@Test
|
||||
public void testSteal() {
|
||||
void testSteal() {
|
||||
final var method = mock(StealingMethod.class);
|
||||
final var thief = new HalflingThief(method);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class HalflingThiefTest {
|
||||
* Verify if the thief uses the provided stealing method, and the new method after changing it
|
||||
*/
|
||||
@Test
|
||||
public void testChangeMethod() {
|
||||
void testChangeMethod() {
|
||||
final var initialMethod = mock(StealingMethod.class);
|
||||
final var thief = new HalflingThief(initialMethod);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user