cusax-fix
Emil Ivov 20 years ago
parent 078985d45b
commit 0fe2819b04

@ -36,7 +36,7 @@ protected void IcqAccountManager()
* @return a copy of the llist containing all accounts currently installed
* in the protocol provider.
*/
public ArrayList getRegisteredAcounts()
public ArrayList getRegisteredAccounts()
{
return new ArrayList(registeredAccounts.keySet());
}

@ -70,7 +70,7 @@ public AccountID installAccount(BundleContext context,
* in this protocol provider.
* @return ArrayList
*/
public ArrayList getRegisteredAcounts();
public ArrayList getRegisteredAccounts();
/**
* Returns the ServiceReference for the protocol provider corresponding to

@ -327,7 +327,7 @@ public void testInstallAccount()
//make sure the account is empty
assertTrue("There was an account registered with the account mananger "
+"before we've installed any",
icqAccountManager.getRegisteredAcounts().size() == 0);
icqAccountManager.getRegisteredAccounts().size() == 0);
//Prepare the properties of the icq account.
@ -394,7 +394,7 @@ public void testInstallAccount()
assertTrue(
"The newly installed account was not in the acc man's "
+"registered accounts!",
icqAccountManager.getRegisteredAcounts().size() == 1);
icqAccountManager.getRegisteredAccounts().size() == 1);
//Verify that the protocol provider corresponding to the new account has
//been properly registered with the osgi framework.

@ -129,7 +129,7 @@ public void testMultipleLogins()
public void testUninstallAccount()
{
assertFalse("No installed accaounts found",
fixture.accManager.getRegisteredAcounts().isEmpty());
fixture.accManager.getRegisteredAccounts().isEmpty());
assertNotNull(
"Found no provider corresponding to account ID "
@ -166,7 +166,7 @@ public void testUninstallAccount()
assertTrue(
"The ICQ account manager kept a reference to the provider we just "
+"uninstalled (accID="+fixture.icqAccountID+")",
fixture.accManager.getRegisteredAcounts().isEmpty()
fixture.accManager.getRegisteredAccounts().isEmpty()
&& fixture.accManager.getProviderForAccount(fixture.icqAccountID) == null
);
}

Loading…
Cancel
Save