mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 14:16:02 +00:00
deps: Refactor dependencies (#3224)
* remove spring dep move junit, logging, mockito under dep mgmt * upgrade anti-corruption-layer deps * async method invocation * balking, bloc * bridge to bytecode * caching * callback - cqrs * component - health check * hexagonal - metadata mapping * rest of the patterns * remove checkstyle, take spotless into use
This commit is contained in:
1 parent
371439aeaa
commit
0ca162a55c
1863 files changed
+14403
-17632
No files matched your search
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Defines all attributes and behaviour related to the King.
|
||||
*/
|
||||
/** Defines all attributes and behaviour related to the King. */
|
||||
public class King implements Royalty {
|
||||
boolean isDrunk = false;
|
||||
boolean isHappy = false;
|
||||
@@ -67,6 +65,5 @@ public class King implements Royalty {
|
||||
} else {
|
||||
this.makeHappy();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Defines all attributes and behaviour related to the Queen.
|
||||
*/
|
||||
/** Defines all attributes and behaviour related to the Queen. */
|
||||
public class Queen implements Royalty {
|
||||
private boolean isDrunk = false;
|
||||
private boolean isHappy = false;
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Interface contracting Royalty Behaviour.
|
||||
*/
|
||||
/** Interface contracting Royalty Behaviour. */
|
||||
public interface Royalty {
|
||||
void makeDrunk();
|
||||
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.objectmother;
|
||||
|
||||
/**
|
||||
* Object Mother Pattern generating Royalty Types.
|
||||
*/
|
||||
/** Object Mother Pattern generating Royalty Types. */
|
||||
public final class RoyaltyObjectMother {
|
||||
|
||||
/**
|
||||
|
||||
+1
-3
@@ -33,9 +33,7 @@ import com.iluwatar.objectmother.Queen;
|
||||
import com.iluwatar.objectmother.RoyaltyObjectMother;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Test Generation of Royalty Types using the object-mother
|
||||
*/
|
||||
/** Test Generation of Royalty Types using the object-mother */
|
||||
class RoyaltyObjectMotherTest {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user