Author: ross.gardler
Date: Sun Sep 7 07:57:52 2008
New Revision: 1276
Modified:
trunk/uk.ac.osswatch.simal.core/src/test/java/uk/ac/osswatch/simal/integrationTest/model/jena/TestProject.java
Log:
Fix an intermittent problem with getMaintiners test (can't predict which of
multiple names will be provided at this point). Fixes ISSUE 192
Modified:
trunk/uk.ac.osswatch.simal.core/src/test/java/uk/ac/osswatch/simal/integrationTest/model/jena/TestProject.java
==============================================================================
---
trunk/uk.ac.osswatch.simal.core/src/test/java/uk/ac/osswatch/simal/integrationTest/model/jena/TestProject.java
(original)
+++
trunk/uk.ac.osswatch.simal.core/src/test/java/uk/ac/osswatch/simal/integrationTest/model/jena/TestProject.java
Sun Sep 7 07:57:52 2008
@@ -241,11 +241,11 @@
IPerson person;
while ((!hasMaintainerOne || !!hasMaintainerTwo) && people.hasNext()) {
person = people.next();
- logger.debug("Got a maintainer with the label " + person.getLabel());
- String label = person.getLabel();
- if (label.equals(TEST_SIMAL_PROJECT_MAINTAINER_ONE)) {
+ Set<String> names = person.getNames();
+ logger.debug("Got a maintainer with the names {}", names);
+ if (names.contains(TEST_SIMAL_PROJECT_MAINTAINER_ONE)) {
hasMaintainerOne = true;
- } else if (label.equals(TEST_SIMAL_PROJECT_MAINTAINER_TWO)) {
+ } else if (names.contains(TEST_SIMAL_PROJECT_MAINTAINER_TWO)) {
hasMaintainerTwo = true;
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Simal Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en
-~----------~----~----~----~------~----~------~--~---