From 616d5cfcc81aa0b97f713cbd1dd38d1866eaf7fb Mon Sep 17 00:00:00 2001 From: Abhijay Kumar Date: Thu, 16 May 2019 13:05:49 +0530 Subject: [PATCH] Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java Co-Authored-By: Libin Yang --- .../com/designpatterns/factorypattern/PolygonFactoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java b/src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java index 1cb92d4a..c175911b 100644 --- a/src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java +++ b/src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java @@ -23,7 +23,7 @@ public class PolygonFactoryTest { // Test for square Polygon square = polFactory.getPolygon(4); - if (!square.getType().equals("Square")) { + if (!"Square".equals(square.getType())) { failReason += "Polygon Factory failed for Square."; } if (square.area(5) != 25) {