#107 JavaDoc for Specification
This commit is contained in:
parent
4bf2e3f16d
commit
cec8e4f168
@ -18,14 +18,14 @@ import com.iluwatar.specification.selector.MovementSelector;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* The central idea of Specification pattern is to separate the statement of how to match a candidate, from the
|
* The central idea of the Specification pattern is to separate the statement of how to match a candidate, from the
|
||||||
* candidate object that it is matched against. As well as its usefulness in selection, it is also valuable for
|
* candidate object that it is matched against. As well as its usefulness in selection, it is also valuable for
|
||||||
* validation and for building to order.
|
* validation and for building to order.
|
||||||
*
|
* <p>
|
||||||
* In this example we have a pool of creatures with different properties. We then have defined separate selection
|
* In this example we have a pool of creatures with different properties. We then have defined separate selection
|
||||||
* rules (Specifications) that we apply to the collection and as output receive only the creatures that match
|
* rules (Specifications) that we apply to the collection and as output receive only the creatures that match
|
||||||
* the selection criteria.
|
* the selection criteria.
|
||||||
*
|
* <p>
|
||||||
* http://martinfowler.com/apsupp/spec.pdf
|
* http://martinfowler.com/apsupp/spec.pdf
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -4,6 +4,11 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import com.iluwatar.specification.app.App;
|
import com.iluwatar.specification.app.App;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Application test
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class AppTest {
|
public class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user