Java 类java.util.IllegalFormatCodePointException 实例源码

项目:sem2-final-project    文件:Grid.java   
private void remove(Planet planet) {
    if(parentPlanet == planet)
    {
        parentPlanet = null;
        throw new IllegalFormatCodePointException(1);
    }
}
项目:In-the-Box-Fork    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getCodePoint()
 */
public void test_getCodePoint() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertEquals(codePoint, illegalFormatCodePointException.getCodePoint());
}
项目:In-the-Box-Fork    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getMessage()
 */
public void test_getMessage() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertTrue(null != illegalFormatCodePointException.getMessage());
}
项目:In-the-Box-Fork    文件:IllegalFormatCodePointExceptionTest.java   
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());
}
项目:cn1    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getCodePoint()
 */
public void test_getCodePoint() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertEquals(codePoint, illegalFormatCodePointException.getCodePoint());
}
项目:cn1    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getMessage()
 */
public void test_getMessage() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertTrue(null != illegalFormatCodePointException.getMessage());
}
项目:cn1    文件:IllegalFormatCodePointExceptionTest.java   
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());
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getCodePoint()
 */
public void test_getCodePoint() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertEquals(codePoint, illegalFormatCodePointException.getCodePoint());
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getMessage()
 */
public void test_getMessage() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertTrue(null != illegalFormatCodePointException.getMessage());
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
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());
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getCodePoint()
 */
public void test_getCodePoint() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertEquals(codePoint, illegalFormatCodePointException.getCodePoint());
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.getMessage()
 */
public void test_getMessage() {
    int codePoint = 12345;
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            codePoint);
    assertTrue(null != illegalFormatCodePointException.getMessage());
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
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());
}
项目:jfairy    文件:DefaultIBANProvider.java   
@Override
public IBAN get() {
    try {

        fillCountryCode();
        fillAccountNumber();
        fillBankCode();
        fillBranchCode();
        nationalCheckDigit = nationalCheckDigit(nationalCheckDigit);

        Iban iban = new Iban.Builder()
                .countryCode(countryCode)
                .bankCode(bankCode)
                .branchCode(branchCode)
                .nationalCheckDigit(nationalCheckDigit)
                .accountNumber(accountNumber)
                .build();

        String identificationNumber = iban.getIdentificationNumber();
        String checkDigit = iban.getCheckDigit();
        String accountType = iban.getAccountType();
        String bban = iban.getBban();
        String ownerAccountType = iban.getOwnerAccountType();
        String ibanNumber = iban.toString();

        return new IBAN(accountNumber, identificationNumber, branchCode, checkDigit,
                accountType, bankCode, bban, countryCode.getName(), nationalCheckDigit,
                ownerAccountType, ibanNumber);
    } catch (IllegalFormatCodePointException e) {
        throw new IllegalArgumentException("Invalid iban " + e.getMessage(), e);
    }
}
项目:In-the-Box-Fork    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.IllegalFormatCodePointException(int)
 */
public void test_illegalFormatCodePointException() {
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            -1);
    assertTrue(null != illegalFormatCodePointException);
}
项目:In-the-Box-Fork    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:In-the-Box-Fork    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this,
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:cn1    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.IllegalFormatCodePointException(int)
 */
public void test_illegalFormatCodePointException() {
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            -1);
    assertTrue(null != illegalFormatCodePointException);
}
项目:cn1    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:cn1    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this,
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.IllegalFormatCodePointException(int)
 */
public void test_illegalFormatCodePointException() {
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            -1);
    assertTrue(null != illegalFormatCodePointException);
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this,
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests java.util.IllegalFormatCodePointException.IllegalFormatCodePointException(int)
 */
public void test_illegalFormatCodePointException() {
    IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
            -1);
    assertTrue(null != illegalFormatCodePointException);
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(
            new IllegalFormatCodePointException(12345), exComparator);
}
项目:freeVM    文件:IllegalFormatCodePointExceptionTest.java   
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

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