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

Commit616d5cf

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

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

2424
// Test for square
2525
Polygonsquare =polFactory.getPolygon(4);
26-
if (!square.getType().equals("Square")) {
26+
if (!"Square".equals(square.getType())) {
2727
failReason +="Polygon Factory failed for Square.";
2828
}
2929
if (square.area(5) !=25) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp