Permalink
Browse files

author tags

  • Loading branch information...
1 parent ebdaf79 commit d0e8c32415d1e780a985f80d4561aee51a3903e5 @markfisher markfisher committed Sep 12, 2012
Showing with 41 additions and 15 deletions.
  1. +2 −1 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/Cupboard.java
  2. +0 −1 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/ShoppingListWriter.java
  3. +1 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Amount.java
  4. +1 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/AmountConverter.java
  5. +3 −1 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Grocery.java
  6. +1 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/GroceryBag.java
  7. +3 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Ingredient.java
  8. +1 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Meal.java
  9. +3 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Meat.java
  10. +1 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Product.java
  11. +2 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Recipe.java
  12. +1 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/ShoppingList.java
  13. +3 −0 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/domain/Vegetable.java
  14. +2 −3 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/shop/Butcher.java
  15. +2 −2 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/shop/GreenGrocer.java
  16. +1 −1 siia-examples-parent/home-cooking/src/main/java/com/manning/siia/kitchen/shop/Supermarket.java
  17. +2 −0 siia-examples-parent/home-cooking/src/main/resources/home-dinner-flow.xml
  18. +2 −1 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/KitchenTest.java
  19. +2 −1 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/RecipeReadingTest.java
  20. +1 −0 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/RecipeSplitterTest.java
  21. +1 −0 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/ShoppingTest.java
  22. +2 −1 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/TimedPollableChannel.java
  23. +1 −0 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/domain/DomainTest.java
  24. +1 −2 siia-examples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/domain/MealTest.java
  25. +2 −1 ...xamples-parent/home-cooking/src/test/java/com/manning/siia/kitchen/domain/RecipeObjectMother.java
@@ -8,7 +8,8 @@
import javax.annotation.PostConstruct;
import java.util.List;
-/**
+/**
+ * @author Iwein Fuld
*/
public class Cupboard {
@@ -21,7 +21,6 @@ public ShoppingList sendShoppingList(List<Ingredient> ingredients) {
for (Ingredient ingredient : ingredients) {
list.addItem(ingredient);
}
-
return list;
}
@@ -1,6 +1,7 @@
package com.manning.siia.kitchen.domain;
/**
+ * @author Iwein Fuld
*/
public class Amount {
@@ -10,6 +10,7 @@
import static com.manning.siia.kitchen.domain.Amount.Unit;
/**
+ * @author Iwein Fuld
*/
public class AmountConverter implements Converter {
public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) {
@@ -1,6 +1,8 @@
package com.manning.siia.kitchen.domain;
-
+/**
+ * @author Iwein Fuld
+ */
public class Grocery extends Product {
public Grocery(final String name, final Amount amount) {
@@ -5,6 +5,7 @@
import java.util.Set;
/**
+ * @author Iwein Fuld
*/
public class GroceryBag<T extends Product> {
@@ -6,6 +6,9 @@
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;
+/**
+ * @author Iwein Fuld
+ */
@XStreamAlias("ingredient")
public class Ingredient {
@@ -6,6 +6,7 @@
import java.util.List;
/**
+ * @author Iwein Fuld
*/
public class Meal {
@@ -1,5 +1,8 @@
package com.manning.siia.kitchen.domain;
+/**
+ * @author Iwein Fuld
+ */
public class Meat extends Product {
public Meat(final String name, Amount amount) {
@@ -1,6 +1,7 @@
package com.manning.siia.kitchen.domain;
/**
+ * @author Iwein Fuld
*/
public abstract class Product {
private final String name;
@@ -12,6 +12,8 @@
/**
* A Recipe consists of Ingredients and has a name.
+ *
+ * @author Iwein Fuld
*/
@XStreamAlias("recipe")
public class Recipe {
@@ -5,6 +5,7 @@
import java.util.List;
/**
+ * @author Iwein Fuld
*/
public class ShoppingList {
@@ -2,6 +2,9 @@
import com.manning.siia.kitchen.domain.Amount;
+/**
+ * @author Iwein Fuld
+ */
public class Vegetable extends Product {
public Vegetable(final String name, final Amount amount) {
@@ -1,13 +1,13 @@
package com.manning.siia.kitchen.shop;
-
import com.manning.siia.kitchen.domain.GroceryBag;
import com.manning.siia.kitchen.domain.Ingredient;
import com.manning.siia.kitchen.domain.Meat;
import com.manning.siia.kitchen.domain.ShoppingList;
import org.springframework.integration.annotation.Transformer;
-/**
+/**
+ * @author Iwein Fuld
*/
public class Butcher {
@@ -22,7 +22,6 @@ public Meat sell(Ingredient ingredient) {
for (Ingredient ingredient : shoppingList.getItems()) {
groceryBag.put(sell(ingredient));
}
-
return groceryBag;
}
}
@@ -6,7 +6,8 @@
import com.manning.siia.kitchen.domain.Vegetable;
import org.springframework.integration.annotation.Transformer;
-/**
+/**
+ * @author Iwein Fuld
*/
public class GreenGrocer {
@@ -21,7 +22,6 @@ public Vegetable sell(Ingredient ingredient) {
for (Ingredient ingredient : shoppingList.getItems()) {
groceryBag.put(sell(ingredient));
}
-
return groceryBag;
}
@@ -7,6 +7,7 @@
import org.springframework.integration.annotation.Transformer;
/**
+ * @author Iwein Fuld
*/
public class Supermarket {
@@ -21,7 +22,6 @@ public Grocery sell(Ingredient ingredient) {
for (Ingredient ingredient : shoppingList.getItems()) {
groceryBag.put(sell(ingredient));
}
-
return groceryBag;
}
@@ -6,6 +6,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
+
<beans:import resource="recipebook.xml"/>
<channel id="recipes"/>
@@ -35,4 +36,5 @@
<poller default="true" fixed-rate="1000"/>
<util:properties id="conf" location="kitchen.properties"/>
+
</beans:beans>
@@ -18,7 +18,8 @@
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;
-/**
+/**
+ * @author Iwein Fuld
*/
@ContextConfiguration(locations = "/home-dinner-flow.xml")
@RunWith(SpringJUnit4ClassRunner.class)
@@ -18,7 +18,8 @@
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
-/**
+/**
+ * @author Iwein Fuld
*/
@ContextConfiguration(locations = {"/TEST-home-dinner-flow.xml", "/TEST-recipe-reader.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
@@ -16,6 +16,7 @@
import static org.junit.Assert.assertThat;
/**
+ * @author Iwein Fuld
*/
@ContextConfiguration(locations = {"/home-dinner-flow.xml", "/TEST-recipeSplitter.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
@@ -20,6 +20,7 @@
import static org.junit.Assert.assertThat;
/**
+ * @author Iwein Fuld
*/
@ContextConfiguration(locations = {"/home-dinner-flow.xml", "/TEST-shopping.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
@@ -4,7 +4,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.integration.core.PollableChannel;
-/**
+/**
+ * @author Iwein Fuld
*/
public class TimedPollableChannel {
private PollableChannel wrapped;
@@ -16,6 +16,7 @@
import static org.junit.Assert.assertThat;
/**
+ * @author Iwein Fuld
*/
public class DomainTest {
private XStream xstream;
@@ -26,9 +26,8 @@ public void shouldBeDoneWhenAllIngredientsAreCooked() throws Exception {
given(recipe.isSatisfiedBy(Arrays.asList(soleProduct))).willReturn(true);
meal.cook(soleProduct);
-
+
assertThat(meal.isDone(), is(true));
-
}
}
@@ -4,7 +4,8 @@
import com.manning.siia.kitchen.domain.Ingredient;
import com.manning.siia.kitchen.domain.Recipe;
-/**
+/**
+ * @author Iwein Fuld
*/
public class RecipeObjectMother {

0 comments on commit d0e8c32

Please sign in to comment.