Skip to content

Commit 77881f6

Browse files
abhijay94yanglbme
andauthored
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
1 parent c11a061 commit 77881f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public void testPolygonFactory() {
1313

1414
// Test for triangle
1515
Polygon triangle = polFactory.getPolygon(3);
16-
if (!triangle.getType().equals("Triangle")) {
16+
if (!"Triangle".equals(triangle.getType())) {
1717
failReason += "Polygon Factory failed for Triangle.";
1818
}
1919
if (triangle.area(4) != 6.928208) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy