Skip to content

Commit

Permalink
Method rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Pfennig committed Jan 17, 2016
1 parent 0c01058 commit 7e89b55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/wahlzeit/plants/PlantManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public static PlantManager getInstance() {


/**
* @methodtype Query: Get
* @methodtype Helper: Factory
* @methodproperty Implementation: Regular, Composed
* @param typeName Type Name
* @return Plant
*/
public Plant getPlant(String typeName) {
public Plant createPlant(String typeName) {
assert typeName != null : "typename is null";

PlantType plantType = getPlantType(typeName);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/wahlzeit/plants/PlantTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class PlantTypeTest {

@BeforeClass
public static void setUp() {
smallPlant = PlantManager.getInstance().getPlant("Small Plant");
smallPlant = PlantManager.getInstance().createPlant("Small Plant");

awesomeSuperType = PlantManager.getInstance().getPlantType("Awesome Plant");

Expand Down

0 comments on commit 7e89b55

Please sign in to comment.