Ignore:
Timestamp:
2013-06-03T23:27:43+02:00 (11 years ago)
Author:
simon04
Message:

JOSM/wikipedia: add test suite

Location:
applications/editors/josm/plugins/wikipedia
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java

    r29523 r29621  
    227227            }
    228228        }
     229
     230        @Override
     231        public String toString() {
     232            return lang + ":" + article;
     233        }
     234
     235        @Override
     236        public boolean equals(Object o) {
     237            if (this == o) return true;
     238            if (o == null || getClass() != o.getClass()) return false;
     239
     240            WikipediaLangArticle that = (WikipediaLangArticle) o;
     241
     242            if (article != null ? !article.equals(that.article) : that.article != null) return false;
     243            if (lang != null ? !lang.equals(that.lang) : that.lang != null) return false;
     244
     245            return true;
     246        }
    229247    }
    230248
Note: See TracChangeset for help on using the changeset viewer.