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

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

        pushManager.setAliasAndTags(alias, new HashSet<String>());

        assertTrue(pushManager.getTags().isEmpty());
        assertEquals(pushManager.getAlias(), alias);
    }
/**
     * Tests passing an empty set clears the tags.
     */
Tests passing an empty set clears the tags.
Tests passing an empty set clears the tags .
@Test
    public void testNormalizeAliasAndTagsEmptySet() {
        String tag = " test_tag";
        String alias = "sandwich";
        HashSet<String> tags = new HashSet<>();
        tags.add(tag);
        pushManager.setTags(tags);
        pushManager.setAliasAndTags(alias, new HashSet<String>());
        assertTrue(pushManager.getTags().isEmpty());
        assertEquals(pushManager.getAlias(), alias);
    }
@ Test public void testNormalizeAliasAndTagsEmptySet ( ) { String tag = " test_tag" ; String alias = "sandwich" ; HashSet < String > tags = new HashSet < > ( ) ; tags . add ( tag ) ; pushManager . setTags ( tags ) ; pushManager . setAliasAndTags ( alias , new HashSet < String > ( ) ) ; assertTrue ( pushManager . getTags ( ) . isEmpty ( ) ) ; assertEquals ( pushManager . getAlias ( ) , alias ) ; }
Tests passing an empty set clears the tags.
Tests passing an empty set clears the tags .