java.util.IllegalFormatCodePointException Java Examples

The following examples show how to use java.util.IllegalFormatCodePointException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IllegalFormatCodePointExceptionTest.java    From j2objc with Apache License 2.0 5 votes vote down vote up
/**
 * java.util.IllegalFormatCodePointException.getCodePoint()
 */
public void test_getCodePoint() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertEquals(codePoint, illegalFormatCodePointException.getCodePoint());
}
 
Example #2
Source File: IllegalFormatCodePointExceptionTest.java    From j2objc with Apache License 2.0 5 votes vote down vote up
/**
 * java.util.IllegalFormatCodePointException.getMessage()
 */
public void test_getMessage() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertTrue(null != illegalFormatCodePointException.getMessage());
}
 
Example #3
Source File: IllegalFormatCodePointExceptionTest.java    From j2objc with Apache License 2.0 5 votes vote down vote up
public void assertDeserialized(Serializable initial,
        Serializable deserialized) {

    SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial,
            deserialized);

    IllegalFormatCodePointException initEx = (IllegalFormatCodePointException) initial;
    IllegalFormatCodePointException desrEx = (IllegalFormatCodePointException) deserialized;

    assertEquals("CodePoint", initEx.getCodePoint(), desrEx
            .getCodePoint());
}
 
Example #4
Source File: IllegalFormatCodePointExceptionTest.java    From j2objc with Apache License 2.0 4 votes vote down vote up
/**
 * java.util.IllegalFormatCodePointException.IllegalFormatCodePointException(int)
 */
public void test_illegalFormatCodePointException() {
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            -1);
    assertTrue(null != illegalFormatCodePointException);
}
 
Example #5
Source File: IllegalFormatCodePointExceptionTest.java    From j2objc with Apache License 2.0 4 votes vote down vote up
/**
 * serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(
            new IllegalFormatCodePointException(12345), exComparator);
}
 
Example #6
Source File: IllegalFormatCodePointExceptionTest.java    From j2objc with Apache License 2.0 4 votes vote down vote up
/**
 * serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this,
            new IllegalFormatCodePointException(12345), exComparator);
}