Class NumberLiteralValidatorTest

    • Constructor Detail

      • NumberLiteralValidatorTest

        public NumberLiteralValidatorTest()
    • Method Detail

      • setUp

        public static void setUp()
      • testAllowedNumberLiteral1

        public void testAllowedNumberLiteral1()
                                       throws Exception
        Allowed "111"
        Throws:
        Exception
      • testAllowedNumberLiteral2

        public void testAllowedNumberLiteral2()
                                       throws Exception
        Allowed "111.1"
        Throws:
        Exception
      • testWrongNumberLiteral1

        public void testWrongNumberLiteral1()
                                     throws Exception
        not allowed "11 1"
        Throws:
        Exception
      • testWrongNumberLiteral2

        public void testWrongNumberLiteral2()
                                     throws Exception
        not allowed ".111"
        Throws:
        Exception
      • testWrongNumberLiteral3

        public void testWrongNumberLiteral3()
                                     throws Exception
        Allowed "111."
        Throws:
        Exception
      • testWrongNumberLiteral4

        public void testWrongNumberLiteral4()
                                     throws Exception
        not allowed "111 .1"
        Throws:
        Exception
      • testWrongNumberLiteral5

        public void testWrongNumberLiteral5()
                                     throws Exception
        not allowed "111. 1"
        Throws:
        Exception
      • testWrongNumberLiteral6

        public void testWrongNumberLiteral6()
                                     throws Exception
        not allowed "111.1 1"
        Throws:
        Exception
      • testWrongNumberLiteral7

        public void testWrongNumberLiteral7()
                                     throws Exception
        not allowed "1 11.11"
        Throws:
        Exception
      • testWrongNumberLiteral8

        public void testWrongNumberLiteral8()
                                     throws Exception
        Allowed "0."
        Throws:
        Exception
      • testWrongNumberLiteral9

        public void testWrongNumberLiteral9()
                                     throws Exception
        Allowed "(1)"
        Throws:
        Exception
      • testWrongNumberLiteral10

        public void testWrongNumberLiteral10()
                                      throws Exception
        Not allowed "((1)"
        Throws:
        Exception
      • testWrongNumberLiteral11

        public void testWrongNumberLiteral11()
                                      throws Exception
        Allowed "( 53 )"
        Throws:
        Exception
      • testWrongNumberLiteral12

        public void testWrongNumberLiteral12()
                                      throws Exception
        Allowed "Сообщить(1,// пыввапвапвап // пыввапвапвап 1222, 1)"
        Throws:
        Exception