Hello!
More interesting observations on running the JUnit tests of
windowlicker on a german Mac OS 10.6.4:
I am not sure if this this normal behavior or if something is wrong
with my setup:
Currently I am trying to fix
"JFileChooserDriverTest.testCanClickCancelButton". It fails with the
following result:
--- snip ---
WARNING: could not load keyboard layout Mac-, using fallback layout
with reduced capabilities (/Users/coellen/Sources/windowlicker/
windowlicker-read-only/classes/production/windowlicker/com/objogate/wl/
keyboard/Mac- (No such file or directory))
java.lang.AssertionError:
Tried to find:
exactly 1 JButton (with text matching 'Cancel')
in the exact JFileChooser '"javax.swing.JFileChooser[,
0,0,550x400,invalid,layout=javax.swing.BoxLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=320,maximumSize=,minimumSize=,preferredSize=,approveButtonText=Go,currentDirectory=/
Users/coellen/Sources/windowlicker/windowlicker-read-only/build/
grandparent.dir/parent.dir/
child.dir,dialogTitle=,dialogType=CUSTOM_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]"'
and check that it is showing on screen
but:
contained 0 JButton (with text matching 'Cancel')
at com.objogate.wl.PollingProber.check(PollingProber.java:38)
at
com.objogate.wl.swing.driver.ComponentDriver.check(ComponentDriver.java:
62)
--- snap ---
The warning was the reason for my first posting. The test does fail
because the "Cancel"-Button could not be found. I started playing with
the VM parameters -Duser.language and -Duser.country (de, DE; en,
US; ...), but it did not solve the problem. The Swing labels were
still in german but date and time of the file were changing.
Any ideas?
Niels
P.S.: I tried running the tests with soylatte 1.0.3 instead of Apple
Java but this did fail too with an X11 failure.