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:05:49 +05:30 committed by GitHub
parent 321ebea864
commit 616d5cfcc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ public class PolygonFactoryTest {
// Test for square // Test for square
Polygon square = polFactory.getPolygon(4); Polygon square = polFactory.getPolygon(4);
if (!square.getType().equals("Square")) { if (!"Square".equals(square.getType())) {
failReason += "Polygon Factory failed for Square."; failReason += "Polygon Factory failed for Square.";
} }
if (square.area(5) != 25) { if (square.area(5) != 25) {