FileDocCategorySizeDatePackage
SyncFailedExceptionTest.javaAPI DocAndroid 1.5 API1821Wed May 06 22:41:04 BST 2009tests.api.java.io

SyncFailedExceptionTest

public class SyncFailedExceptionTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtest_ConstructorLjava_lang_String()

tests
java.io.SyncFailedException#SyncFailedException(java.lang.String)

        try {
            if (true) // To avoid unreachable code compilation error.
                throw new SyncFailedException("Something went wrong.");
            fail("Test 1: SyncFailedException expected.");
        } catch (SyncFailedException e) {
            assertEquals("Test 2: Incorrect message;",
                    "Something went wrong.", e.getMessage());
        }