Class AbstractFieldValidatorTest<B>

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static void afterclass()  
      protected void assertFieldInError​(String fieldName, String error, boolean required)  
      static void initValidator()  
      void setUp()  
      void tearDown()  
      abstract void testValidator()
      the method to test the given validator on the given bean.
      • Methods inherited from class org.junit.Assert

        assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
    • Constructor Detail

      • AbstractFieldValidatorTest

        public AbstractFieldValidatorTest​(Class<B> type)
    • Method Detail

      • testValidator

        public abstract void testValidator()
                                    throws Exception
        the method to test the given validator on the given bean. When coming here a validator and bean were instanciated and the bean was setted into validator via setBean method.
        Throws:
        Exception - if any error ?
      • tearDown

        public void tearDown()
      • assertFieldInError

        protected void assertFieldInError​(String fieldName,
                                          String error,
                                          boolean required)