Search in sources :

Example 1 with AllAccounts

use of com.microsoft.identity.common.internal.authorities.AllAccounts in project microsoft-authentication-library-common-for-android by AzureAD.

the class AudienceDefaultCloudUrlTest method test_AccountsInOneOrganizationDefaultCloudUrl.

@Test
public void test_AccountsInOneOrganizationDefaultCloudUrl() {
    AzureActiveDirectoryAudience audience = new AccountsInOneOrganization();
    Assert.assertEquals(AzureActiveDirectoryEnvironment.PRODUCTION_CLOUD_URL, audience.getCloudUrl());
    audience = new AllAccounts();
    Assert.assertEquals(AzureActiveDirectoryEnvironment.PRODUCTION_CLOUD_URL, audience.getCloudUrl());
}
Also used : AllAccounts(com.microsoft.identity.common.internal.authorities.AllAccounts) AzureActiveDirectoryAudience(com.microsoft.identity.common.internal.authorities.AzureActiveDirectoryAudience) AccountsInOneOrganization(com.microsoft.identity.common.internal.authorities.AccountsInOneOrganization) Test(org.junit.Test)

Example 2 with AllAccounts

use of com.microsoft.identity.common.internal.authorities.AllAccounts in project microsoft-authentication-library-common-for-android by AzureAD.

the class AudienceDefaultCloudUrlTest method test_AnyPerosnalAccountDefaultCloudUrl.

@Test
public void test_AnyPerosnalAccountDefaultCloudUrl() {
    AzureActiveDirectoryAudience audience = new AllAccounts();
    Assert.assertEquals(AzureActiveDirectoryEnvironment.PRODUCTION_CLOUD_URL, audience.getCloudUrl());
}
Also used : AllAccounts(com.microsoft.identity.common.internal.authorities.AllAccounts) AzureActiveDirectoryAudience(com.microsoft.identity.common.internal.authorities.AzureActiveDirectoryAudience) Test(org.junit.Test)

Example 3 with AllAccounts

use of com.microsoft.identity.common.internal.authorities.AllAccounts in project microsoft-authentication-library-common-for-android by AzureAD.

the class AudienceDefaultCloudUrlTest method test_AnyOrganizationAccountDefaultCloudUrl.

@Test
public void test_AnyOrganizationAccountDefaultCloudUrl() {
    AzureActiveDirectoryAudience audience = new AllAccounts();
    Assert.assertEquals(AzureActiveDirectoryEnvironment.PRODUCTION_CLOUD_URL, audience.getCloudUrl());
}
Also used : AllAccounts(com.microsoft.identity.common.internal.authorities.AllAccounts) AzureActiveDirectoryAudience(com.microsoft.identity.common.internal.authorities.AzureActiveDirectoryAudience) Test(org.junit.Test)

Example 4 with AllAccounts

use of com.microsoft.identity.common.internal.authorities.AllAccounts in project microsoft-authentication-library-common-for-android by AzureAD.

the class AudienceDefaultPreProductionCloudUrlTest method test_AnyPerosnalAccountDefaultCloudUrl.

@Test
public void test_AnyPerosnalAccountDefaultCloudUrl() {
    AzureActiveDirectoryAudience audience = new AllAccounts();
    Assert.assertEquals(AzureActiveDirectoryEnvironment.PREPRODUCTION_CLOUD_URL, audience.getCloudUrl());
}
Also used : AllAccounts(com.microsoft.identity.common.internal.authorities.AllAccounts) AzureActiveDirectoryAudience(com.microsoft.identity.common.internal.authorities.AzureActiveDirectoryAudience) Test(org.junit.Test)

Example 5 with AllAccounts

use of com.microsoft.identity.common.internal.authorities.AllAccounts in project microsoft-authentication-library-common-for-android by AzureAD.

the class AudienceDefaultPreProductionCloudUrlTest method test_AnyOrganizationAccountDefaultCloudUrl.

@Test
public void test_AnyOrganizationAccountDefaultCloudUrl() {
    AzureActiveDirectoryAudience audience = new AllAccounts();
    Assert.assertEquals(AzureActiveDirectoryEnvironment.PREPRODUCTION_CLOUD_URL, audience.getCloudUrl());
}
Also used : AllAccounts(com.microsoft.identity.common.internal.authorities.AllAccounts) AzureActiveDirectoryAudience(com.microsoft.identity.common.internal.authorities.AzureActiveDirectoryAudience) Test(org.junit.Test)

Aggregations

AllAccounts (com.microsoft.identity.common.internal.authorities.AllAccounts)7 AzureActiveDirectoryAudience (com.microsoft.identity.common.internal.authorities.AzureActiveDirectoryAudience)7 Test (org.junit.Test)7 AccountsInOneOrganization (com.microsoft.identity.common.internal.authorities.AccountsInOneOrganization)1