Package java.util

Examples of java.util.FormatFlagsConversionMismatchException


  }

  private void failMismatch(Flags f, char c)
      throws FormatFlagsConversionMismatchException {
    String fs = f.toString();
    throw new FormatFlagsConversionMismatchException(fs, c);
  }
View Full Code Here


     * @tests java.util.FormatFlagsConversionMismatchException#FormatFlagsConversionMismatchException(String,
     *        char)
     */
    public void test_formatFlagsConversionMismatchException() {
        try {
            new FormatFlagsConversionMismatchException(null, ' ');
            fail("should throw NullPointerException.");
        } catch (NullPointerException e) {
            // expected
        }

View Full Code Here

     * @tests java.util.FormatFlagsConversionMismatchException#getFlags()
     */
    public void test_getFlags() {
        String flags = "MYTESTFLAGS";
        char conversion = 'T';
        FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
                flags, conversion);
        assertEquals(flags, formatFlagsConversionMismatchException.getFlags());
    }
View Full Code Here

     * @tests java.util.FormatFlagsConversionMismatchException#getConversion()
     */
    public void test_getConversion() {
        String flags = "MYTESTFLAGS";
        char conversion = 'T';
        FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
                flags, conversion);
        assertEquals(conversion, formatFlagsConversionMismatchException
                .getConversion());

    }
View Full Code Here

     * @tests java.util.FormatFlagsConversionMismatchException#getMessage()
     */
    public void test_getMessage() {
        String flags = "MYTESTFLAGS";
        char conversion = 'T';
        FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
                flags, conversion);
        assertTrue(null != formatFlagsConversionMismatchException.getMessage());

    }
View Full Code Here

     * @tests serialization/deserialization.
     */
    public void testSerializationSelf() throws Exception {

        SerializationTest.verifySelf(
                new FormatFlagsConversionMismatchException("MYTESTFLAGS", 'T'),
                exComparator);
    }
View Full Code Here

     * @tests serialization/deserialization compatibility with RI.
     */
    public void testSerializationCompatibility() throws Exception {

        SerializationTest.verifyGolden(this,
                new FormatFlagsConversionMismatchException("MYTESTFLAGS", 'T'),
                exComparator);
    }
View Full Code Here

  }

  private void failMismatch(Flags f, char c)
      throws FormatFlagsConversionMismatchException {
    String fs = f.toString();
    throw new FormatFlagsConversionMismatchException(fs, c);
  }
View Full Code Here

TOP

Related Classes of java.util.FormatFlagsConversionMismatchException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.