urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testAliasAndTags() {
        String tag = "a_tag";
        String alias = "sandwich";

        HashSet<String> tags = new HashSet<>();
        tags.add(tag);

        pushManager.setAliasAndTags(alias, tags);

        assertEquals(pushManager.getTags().size(), 1);
        assertEquals(pushManager.getTags().iterator().next(), tag);
        assertEquals(pushManager.getAlias(), alias);
    }
/**
     * Tests setting alias and tags.
     */
Tests setting alias and tags.
Tests setting alias and tags .
@Test
    public void testAliasAndTags() {
        String tag = "a_tag";
        String alias = "sandwich";
        HashSet<String> tags = new HashSet<>();
        tags.add(tag);
        pushManager.setAliasAndTags(alias, tags);
        assertEquals(pushManager.getTags().size(), 1);
        assertEquals(pushManager.getTags().iterator().next(), tag);
        assertEquals(pushManager.getAlias(), alias);
    }
@ Test public void testAliasAndTags ( ) { String tag = "a_tag" ; String alias = "sandwich" ; HashSet < String > tags = new HashSet < > ( ) ; tags . add ( tag ) ; pushManager . setAliasAndTags ( alias , tags ) ; assertEquals ( pushManager . getTags ( ) . size ( ) , 1 ) ; assertEquals ( pushManager . getTags ( ) . iterator ( ) . next ( ) , tag ) ; assertEquals ( pushManager . getAlias ( ) , alias ) ; }
Tests setting alias and tags.
Tests setting alias and tags .