We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77881f6 commit 6ffb2d5Copy full SHA for 6ffb2d5
src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
@@ -33,7 +33,7 @@ public void testPolygonFactory() {
33
34
//Test for pentagon
35
Polygon pentagon = polFactory.getPolygon(5);
36
- if (!pentagon.getType().equals("Pentagon")) {
+ if (!"Pentagon".equals(pentagon.getType())) {
37
failReason += "Polygon Factory failed for Pentagon.";
38
}
39
if (pentagon.area(9) != 311.615424) {
0 commit comments