Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6ffb2d5

Browse files
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
1 parent77881f6 commit6ffb2d5

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
@@ -33,7 +33,7 @@ public void testPolygonFactory() {
3333

3434
//Test for pentagon
3535
Polygonpentagon =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)

[8]ページ先頭

©2009-2025 Movatter.jp