Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4266437

Regression Test Case test/java/text/Format/DateFormatTest.java error

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_7
    • Verified

      Locales : all non-C locales
      Platforms : Win32/Sol
      JDK build : Kestrel-O

      Several hard-coded strings are used in java/text/Format/DateFormatTest.java as
      expected "date format" outputs. For example, in line 443 of this test case:
              String exp = "08/13/1997 at 10:42:28 AM ";

      Things like this makes this test case only runable in C locale. The test case
      is doomed to fail in non-C environments.

      I would like suggest we take a look this test case, and rewrite those hard-coded
      strings in a different way -- for example, making use of resource bundles.

      -----------------------------------------------------------------------------
      #Test Results (version 2)
      #Tue Aug 24 14:24:13 PDT 1999
      #checksum:54ab1e54736ceb90
      #-----testdescription-----
      file=/home/barzin/regtest/test/java/text/Format/DateFormatTest.java
      keywords=bug4052223 bug4089987
      run=ASSUMED_ACTION main DateFormatTest\n
      source=DateFormatTest.java
      testsuite=/home/barzin/regtest/test
      title=test BreakIterator

      #-----environment-----

      #-----testresult-----
      description=file:/home/barzin/regtest/test/java/text/Format/DateFormatTest.java
      end=Tue Aug 24 14:24:13 PDT 1999
      environment=regtest
      execStatus=Failed. Execution failed
      javatestVersion=JT_2.1.1a
      script=javasoft.sqe.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Tue Aug 24 14:24:04 PDT 1999
      status=Failed. Execution failed
      test=java/text/Format/DateFormatTest.java
      work=/home/barzin/regtest/JTwork/java/text/Format

      #section:script_messages
      ----------messages:(1/68)----------
      JDK under test: java full version "1.3beta-O" (/home/barzin/jdk1.3)

      #section:build
      ----------messages:(3/100)----------
      command: build DateFormatTest
      reason: Named class compiled on demand
      elapsed time (seconds): 7.208
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/161)----------
      command: compile /home/barzin/regtest/test/java/text/Format/DateFormatTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 7.183
      ----------System.out:(0/0)----------
      ----------System.err:(2/146)----------
      Ãí: /home/barzin/regtest/test/java/text/Format/DateFormatTest.java ¤Ï¿ä¾©¤µ¤ì¤Ê¤¤ API ¤ò»ÈÍѤޤ¿¤Ï¥ª¡¼¥Ð¡¼¥é¥¤¥É¤·¤Æ¤¤¤Þ¤¹¡£
      Ãí: ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢-deprecation ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤ÆºÆ¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/127)----------
      command: main DateFormatTest
      reason: Assumed action based on file name: run main DateFormatTest
      elapsed time (seconds): 2.446
      ----------System.out:(6/216)----------
      DateFormatTest {
        TestRunTogetherPattern917 Passed
        TestPartialParse994 Passed
        TestQuotePattern161 {
          FAIL: Expected 08/13/1997 at 10:42:28 AM
          Uncaught exception thrown in test method TestQuotePattern161
      ----------System.err:(15/720)----------
      java.lang.RuntimeException: Uncaught exception thrown in test method TestQuotePattern161

              at IntlTest.err(IntlTest.java:161)
              at IntlTest.errln(IntlTest.java:166)
              at IntlTest.run(IntlTest.java:114)
              at DateFormatTest.main(DateFormatTest.java:13)
              at java.lang.reflect.Method.invoke(Native Method)
              at javasoft.sqe.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
              at java.lang.Thread.run(Thread.java:479)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method TestQuotePattern161

      JavaTest Message: shutting down test

      STATUS:Failed.
      result: Failed. Execution failed


      test result: Failed. Execution failed

            ktakahassunw Koushi Takahashi (Inactive)
            cjaosunw Cindy Jao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: