Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
This commit is contained in:
parent
43d47225be
commit
c29640e0e2
@ -11,7 +11,7 @@ public class PolygonFactoryTest {
|
||||
String failReason = "";
|
||||
PolygonFactory polFactory = new PolygonFactory();
|
||||
|
||||
//Test for triangle
|
||||
// Test for triangle
|
||||
Polygon triangle = polFactory.getPolygon(3);
|
||||
if (!triangle.getType().equals("Triangle")) {
|
||||
failReason += "Polygon Factory failed for Triangle.";
|
||||
|
Loading…
Reference in New Issue
Block a user