Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
This commit is contained in:
parent
321ebea864
commit
616d5cfcc8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user