urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testNormalizeTagsEmptySet() {
        String tag = "testTag";

        HashSet<String> tags = new HashSet<>();
        tags.add(tag);
        pushManager.setTags(tags);
        assertEquals(pushManager.getTags().size(), 1);
        assertEquals(pushManager.getTags().iterator().next(), tag);

        pushManager.setTags(new HashSet<String>());
        assertTrue(pushManager.getTags().isEmpty());
    }
/**
     * 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 testNormalizeTagsEmptySet() {
        String tag = "testTag";
        HashSet<String> tags = new HashSet<>();
        tags.add(tag);
        pushManager.setTags(tags);
        assertEquals(pushManager.getTags().size(), 1);
        assertEquals(pushManager.getTags().iterator().next(), tag);
        pushManager.setTags(new HashSet<String>());
        assertTrue(pushManager.getTags().isEmpty());
    }
@ Test public void testNormalizeTagsEmptySet ( ) { String tag = "testTag" ; HashSet < String > tags = new HashSet < > ( ) ; tags . add ( tag ) ; pushManager . setTags ( tags ) ; assertEquals ( pushManager . getTags ( ) . size ( ) , 1 ) ; assertEquals ( pushManager . getTags ( ) . iterator ( ) . next ( ) , tag ) ; pushManager . setTags ( new HashSet < String > ( ) ) ; assertTrue ( pushManager . getTags ( ) . isEmpty ( ) ) ; }
Tests passing an empty set clears the tags.
Tests passing an empty set clears the tags .