aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java21
1 files changed, 10 insertions, 11 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java b/test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java
index bc04f2f..6c6b6b8 100644
--- a/test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java
+++ b/test/net/java/sip/communicator/slick/protocol/gibberish/TestProtocolProviderServiceGibberishImpl.java
@@ -145,20 +145,19 @@ public class TestProtocolProviderServiceGibberishImpl
*/
public void testOperationSetTypes() throws Exception
{
- Map supportedOperationSets
- = fixture.provider1.getSupportedOperationSets();
+ Map<String, OperationSet> supportedOperationSets =
+ fixture.provider1.getSupportedOperationSets();
- //make sure that keys (which are supposed to be class names) correspond
- //what the class of the values recorded against them.
- Iterator setNames = supportedOperationSets.keySet().iterator();
- while (setNames.hasNext())
+ // make sure that keys (which are supposed to be class names) correspond
+ // what the class of the values recorded against them.
+ for (Map.Entry<String, OperationSet> entry : supportedOperationSets
+ .entrySet())
{
- String setName = (String) setNames.next();
- Object opSet = supportedOperationSets.get(setName);
+ String setName = entry.getKey();
+ Object opSet = entry.getValue();
- assertTrue(opSet + " was not an instance of "
- + setName + " as declared"
- , Class.forName(setName).isInstance(opSet));
+ assertTrue(opSet + " was not an instance of " + setName
+ + " as declared", Class.forName(setName).isInstance(opSet));
}
}