urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testNormalizeTagsMaxLength() {
        String tag = "128_chars_lkashdflsfghekjashdflkjhsdfkjhsadkfjhskdnvpeortoivnk84389349843982ij321" +
                "masdflkjahsdgkfjandsgkljhasdg'k./l'.][;l].k,/[";

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

        pushManager.setTags(tags);
        assertEquals(pushManager.getTags().size(), 1);
        assertEquals(pushManager.getTags().iterator().next(), tag);
    }
/**
     * Tests that max tag length of 127 chars can be set.
     */
Tests that max tag length of 127 chars can be set.
Tests that max tag length of 127 chars can be set .
@Test
    public void testNormalizeTagsMaxLength() {
        String tag = "128_chars_lkashdflsfghekjashdflkjhsdfkjhsadkfjhskdnvpeortoivnk84389349843982ij321" +
                "masdflkjahsdgkfjandsgkljhasdg'k./l'.][;l].k,/[";
        HashSet<String> tags = new HashSet<>();
        tags.add(tag);
        pushManager.setTags(tags);
        assertEquals(pushManager.getTags().size(), 1);
        assertEquals(pushManager.getTags().iterator().next(), tag);
    }
@ Test public void testNormalizeTagsMaxLength ( ) { String tag = "128_chars_lkashdflsfghekjashdflkjhsdfkjhsadkfjhskdnvpeortoivnk84389349843982ij321" + "masdflkjahsdgkfjandsgkljhasdg'k./l'.][;l].k,/[" ; HashSet < String > tags = new HashSet < > ( ) ; tags . add ( tag ) ; pushManager . setTags ( tags ) ; assertEquals ( pushManager . getTags ( ) . size ( ) , 1 ) ; assertEquals ( pushManager . getTags ( ) . iterator ( ) . next ( ) , tag ) ; }
Tests that max tag length of 127 chars can be set.
Tests that max tag length of 127 chars can be set .