mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 11:25:50 +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 DragonSlayerTest {
|
||||
* Verify if the dragon slayer uses the strategy during battle.
|
||||
*/
|
||||
@Test
|
||||
public void testGoToBattle() {
|
||||
void testGoToBattle() {
|
||||
final var strategy = mock(DragonSlayingStrategy.class);
|
||||
final var dragonSlayer = new DragonSlayer(strategy);
|
||||
|
||||
@@ -53,7 +53,7 @@ public class DragonSlayerTest {
|
||||
* Verify if the dragon slayer uses the new strategy during battle after a change of strategy.
|
||||
*/
|
||||
@Test
|
||||
public void testChangeStrategy() {
|
||||
void testChangeStrategy() {
|
||||
final var initialStrategy = mock(DragonSlayingStrategy.class);
|
||||
final var dragonSlayer = new DragonSlayer(initialStrategy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user