homebeaver / SwingSet

try to complete SwingSet3 org.swinglabs.swingx jars 1.6.6 for java 8 and openjdk 17 (Temurin)
GNU Lesser General Public License v2.1
0 stars 0 forks source link

failed tests on Windows 10 openJDK (Temurin) Java release 8 #3

Closed homebeaver closed 2 years ago

homebeaver commented 2 years ago

maven install mit

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <release>8</release> 
          <source>1.8</source>
          <target>1.8</target>
          <generatedSourcesDirectory>${project.generatedAnnotations}</generatedSourcesDirectory>
          <showWarnings>true</showWarnings>
        </configuration>
      </plugin>
...

COMPILATION ERROR: package com.sun.java.swing.plaf.motifdoes not exist

CalendarUtilsTest

[ERROR] testStartOfWeekBeforeFirstWeekOfMonth(org.jdesktop.swingx.calendar.CalendarUtilsTest)  Time elapsed: 0.01 s  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<0> but was:<1>
    at org.jdesktop.swingx.calendar.CalendarUtilsTest.testStartOfWeekBeforeFirstWeekOfMonth(CalendarUtilsTest.java:280)
[ERROR] testStartOfWeekBeforeFirstWeekOfYear(org.jdesktop.swingx.calendar.CalendarUtilsTest)  Time elapsed: 0 s  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<0> but was:<1>
    at org.jdesktop.swingx.calendar.CalendarUtilsTest.testStartOfWeekBeforeFirstWeekOfYear(CalendarUtilsTest.java:293)

see #4

BasicMonthViewUITest

[ERROR] testWeekNumbersWrapBack(org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest)  Time elapsed: 0.023 s  <<< FAILURE!
junit.framework.AssertionFailedError: sanity - weekOfYear expected:<52> but was:<1>
    at org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest.assertWeekNumbers(BasicMonthViewUITest.java:167)
    at org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest.testWeekNumbersWrapBack(BasicMonthViewUITest.java:127)

[ERROR] testWeekNumbersMinimum4(org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest)  Time elapsed: 0.011 s  <<< FAILURE!
junit.framework.AssertionFailedError: sanity - weekOfYear expected:<5> but was:<6>
    at org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest.assertWeekNumbers(BasicMonthViewUITest.java:167)
    at org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest.testWeekNumbersMinimum4(BasicMonthViewUITest.java:189)

[ERROR] testWeekNumbersFull6(org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest)  Time elapsed: 0.004 s  <<< FAILURE!
junit.framework.AssertionFailedError: sanity - weekOfYear expected:<13> but was:<14>
    at org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest.assertWeekNumbers(BasicMonthViewUITest.java:167)
    at org.jdesktop.swingx.plaf.basic.BasicMonthViewUITest.testWeekNumbersFull6(BasicMonthViewUITest.java:179)

cast exception

[ERROR] testEditorResetStateOnNullPattern(org.jdesktop.swingx.FindTest)  Time elapsed: 0.244 s  <<< ERROR!
java.lang.ClassCastException: class java.util.regex.Matcher$ImmutableMatchResult cannot be cast to class java.util.regex.Matcher (java.util.regex.Matcher$ImmutableMatchResult and java.util.regex.Matcher are in module java.base of loader 'bootstrap')
    at org.jdesktop.swingx.FindTest.testEditorResetStateOnNullPattern(FindTest.java:111)

[ERROR] testEditorResetStateOnNullSearchString(org.jdesktop.swingx.FindTest)  Time elapsed: 0.004 s  <<< ERROR!
java.lang.ClassCastException: class java.util.regex.Matcher$ImmutableMatchResult cannot be cast to class java.util.regex.Matcher (java.util.regex.Matcher$ImmutableMatchResult and java.util.regex.Matcher are in module java.base of loader 'bootstrap')
    at org.jdesktop.swingx.FindTest.testEditorResetStateOnNullSearchString(FindTest.java:90)

BuddyLayoutAndBorderTest

[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.458 s <<< FAILURE! - in org.jdesktop.swingx.plaf.BuddyLayoutAndBorderTest
[ERROR] testPreferredWidth(org.jdesktop.swingx.plaf.BuddyLayoutAndBorderTest)  Time elapsed: 0.067 s  <<< FAILURE!
java.lang.AssertionError: expected same:<5> was not:<4>
    at org.jdesktop.swingx.plaf.BuddyLayoutAndBorderTest.testPreferredWidth(BuddyLayoutAndBorderTest.java:54)

PromptTextAreaUITest

[INFO] Running org.jdesktop.swingx.plaf.PromptTextAreaUITest
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.864 s <<< FAILURE! - in org.jdesktop.swingx.plaf.PromptTextAreaUITest
[ERROR] testGetBaseLine(org.jdesktop.swingx.plaf.PromptTextAreaUITest)  Time elapsed: 0.016 s  <<< FAILURE!
java.lang.AssertionError: expected same:<-2> was not:<13>

[INFO] Running org.jdesktop.swingx.plaf.PromptTextFieldUITest
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.457 s <<< FAILURE! - in org.jdesktop.swingx.plaf.PromptTextFieldUITest
[ERROR] testGetBaseLine(org.jdesktop.swingx.plaf.PromptTextFieldUITest)  Time elapsed: 0.007 s  <<< FAILURE!
java.lang.AssertionError: expected same:<-2> was not:<-1>
homebeaver commented 2 years ago

Problem BuddyLayoutAndBorderTest reopend in #6

other solved.