- * @param metaContactNode the Element whose proto contacts we'd likde to + * @param metaContactNode the Element whose proto contacts we'd like to * extract. * @param accountID the id of the account whose contacts we're interested in. * @param protoGroups a map binding proto group UIDs to protogroups, that @@ -1118,7 +1118,7 @@ public void metaContactAdded(MetaContactEvent evt) } catch (IOException ex){ /**given we're being invoked from an event dispatch thread that was - proberly triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after adding contact " + evt.getSourceMetaContact(), ex); @@ -1168,7 +1168,7 @@ public void metaContactGroupAdded(MetaContactGroupEvent evt) catch (IOException ex) { /**given we're being invoked from an event dispatch thread that was - proberly triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after adding contact " + evt.getSourceMetaContactGroup(), ex); @@ -1201,7 +1201,7 @@ public void metaContactGroupRemoved(MetaContactGroupEvent evt) } catch (IOException ex){ /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after removing group " + evt.getSourceMetaContactGroup(), ex); @@ -1251,7 +1251,7 @@ public void metaContactMoved(MetaContactMovedEvent evt) } catch (IOException ex){ /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after moving " + evt.getSourceMetaContact(), ex); @@ -1333,7 +1333,7 @@ public void metaContactRemoved(MetaContactEvent evt) } catch (IOException ex){ /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after removing " + evt.getSourceMetaContact(), ex); @@ -1371,7 +1371,7 @@ public void metaContactRenamed(MetaContactRenamedEvent evt) } catch (IOException ex){ /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after rename of " + evt.getSourceMetaContact(), ex); @@ -1412,7 +1412,7 @@ public void protoContactRemoved(ProtoContactEvent evt) catch (IOException ex) { /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after removing proto contact " + evt.getProtoContact(), ex); @@ -1422,7 +1422,7 @@ public void protoContactRemoved(ProtoContactEvent evt) /** * We simply ignore - we're not interested in this kind of events. - * @param evt the MetaContactGroupEvent containind details of this + * @param evt the MetaContactGroupEvent containing details of this * event. */ public void childContactsReordered(MetaContactGroupEvent evt) @@ -1475,7 +1475,7 @@ public void metaContactGroupModified(MetaContactGroupEvent evt) catch (IOException ex) { /**given we're being invoked from an event dispatch thread - * that was proberly triggerred by a net operation - we + * that was probably triggered by a net operation - we * could not do much. so ... log and @todo one day we'll * have a global error dispatcher */ logger.error("Writing CL failed after adding contact " @@ -1499,7 +1499,7 @@ public void metaContactGroupModified(MetaContactGroupEvent evt) catch (IOException ex) { /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after removing proto group " + evt.getSourceProtoGroup().getGroupName(), ex); @@ -1538,7 +1538,7 @@ public void protoContactAdded(ProtoContactEvent evt) catch (IOException ex) { /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after adding proto contact " + evt.getProtoContact(), ex); @@ -1593,7 +1593,7 @@ public void protoContactMoved(ProtoContactEvent evt) catch (IOException ex) { /**given we're being invoked from an event dispatch thread that was - probably triggerred by a net operation - we could not do much. + probably triggered by a net operation - we could not do much. so ... log and @todo one day we'll have a global error dispatcher */ logger.error("Writing CL failed after moving proto contact " + evt.getProtoContact(), ex); diff --git a/test/net/java/sip/communicator/slick/contactlist/TestMetaContactListPersistence.java b/test/net/java/sip/communicator/slick/contactlist/TestMetaContactListPersistence.java index 5d5395260..a3b75d71f 100644 --- a/test/net/java/sip/communicator/slick/contactlist/TestMetaContactListPersistence.java +++ b/test/net/java/sip/communicator/slick/contactlist/TestMetaContactListPersistence.java @@ -71,7 +71,7 @@ public static Test suite() /** * In this test we only create a meta contact and move it somewhere else. * This is a delicate operation since any underlying storage method would - * have to not only move the meta contact itslef but also make sure that all + * have to not only move the meta contact itself but also make sure that all * proto contacts have been moved to protogroups accordingly. We don't do * any real testing inside this method. The testing would be happening * during reload and it would fail if the contacts moved in this method @@ -112,6 +112,12 @@ public void testCreateAndMoveMetaContact() public void testReloadMetaContactListBundle() throws Exception { + Object o = new Object(); + synchronized(o){ + // wait other operations to finish before reloading + o.wait(1000); + } + Bundle metaClBundle = findMetaClBundle(); //uninstall the meta contact list service @@ -217,7 +223,7 @@ public void testPartialContactListRestauration() } /** - * Register the remaing protocol providers and make sure that they too are + * Register the remaining protocol providers and make sure that they too are * properly loaded inside the contact list. We also need to verify that * proto contacts that have been merged in a single meta contact are still * merged.