Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
This commit is contained in:
Abhijay Kumar 2019-05-16 13:04:41 +05:30 committed by GitHub
parent 43d47225be
commit c29640e0e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.";