FileDocCategorySizeDatePackage
UtilityUnitTests.javaAPI DocAndroid 1.5 API1420Wed May 06 22:42:46 BST 2009com.android.email

UtilityUnitTests

public class UtilityUnitTests extends TestCase
This is a series of unit tests for the Utility class. These tests must be locally complete - no server(s) required.

Fields Summary
Constructors Summary
Methods Summary
public voidtestImapQuote()
Tests of the IMAP quoting rules function.

        
        // Simple strings should come through with simple quotes
        assertEquals("\"abcd\"", Utility.imapQuoted("abcd"));
        
        // Quoting internal double quotes with \
        assertEquals("\"ab\\\"cd\"", Utility.imapQuoted("ab\"cd"));
        
        // Quoting internal \ with \\
        assertEquals("\"ab\\\\cd\"", Utility.imapQuoted("ab\\cd"));