Class TestBooleanConverters

  • All Implemented Interfaces:
    junit.framework.Test

    public class TestBooleanConverters
    extends junit.framework.TestCase
    • Constructor Summary

      Constructors 
      Constructor Description
      TestBooleanConverters​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> void assertFromBoolean​(java.lang.String label, Converter<java.lang.Boolean,​T> converter, T trueResult, T falseResult)  
      static <S> void assertToBoolean​(java.lang.String label, Converter<S,​java.lang.Boolean> converter, S trueSource, S falseSource)  
      static <S> void assertToCollection​(java.lang.String label, S source)  
      void testBooleanConverters()  
      • Methods inherited from class junit.framework.TestCase

        assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestBooleanConverters

        public TestBooleanConverters​(java.lang.String name)
    • Method Detail

      • assertFromBoolean

        public static <T> void assertFromBoolean​(java.lang.String label,
                                                 Converter<java.lang.Boolean,​T> converter,
                                                 T trueResult,
                                                 T falseResult)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertToBoolean

        public static <S> void assertToBoolean​(java.lang.String label,
                                               Converter<S,​java.lang.Boolean> converter,
                                               S trueSource,
                                               S falseSource)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertToCollection

        public static <S> void assertToCollection​(java.lang.String label,
                                                  S source)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBooleanConverters

        public void testBooleanConverters()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception