Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ffb2d5

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void testPolygonFactory() {
3333

3434
//Test for pentagon
3535
Polygon pentagon = polFactory.getPolygon(5);
36-
if (!pentagon.getType().equals("Pentagon")) {
36+
if (!"Pentagon".equals(pentagon.getType())) {
3737
failReason += "Polygon Factory failed for Pentagon.";
3838
}
3939
if (pentagon.area(9) != 311.615424) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.