assertj-swing icon indicating copy to clipboard operation
assertj-swing copied to clipboard

Where is the source code used in the examples, please?

Open i-make-robots opened this issue 4 years ago • 3 comments

What I found/tried:

I am new to AssertJ. I'm reading https://joel-costigliola.github.io/assertj/assertj-swing-input.html

There's a few lines of code pointing me in a good direction. They assume I already know how to import everything needed. The one minute quick-start doesn't have a runable demo.

I looked in various sub-folders for examples with no luck.

What I expect:

A working example I can run locally to see these things in action for myself? Same way a "how to use [swing feature x]" would have run-able source code. Example, JButton links to this demo.

separately:

the quick-start code assumes I know the title of my frame. As my app is multilingual I can't be sure what translation is running or the name of the frame around the panel I want to test. Can application.start() return the root frame?

i-make-robots avatar Dec 20 '21 23:12 i-make-robots

Maybe my assumptions are way off. i'm slowly realizing all classes that are testable in the demos create their own jframes in the default constructor? is that right? How Do I test a class that creates a single jpanel?

i-make-robots avatar Dec 21 '21 00:12 i-make-robots

@i-make-robots have you tried looking at the Swing examples at https://github.com/assertj/assertj-examples?

scordio avatar Jan 09 '22 22:01 scordio

No. I didn't mention them in "what I found/tried" in OP. The link to those source files was not obvious to me.

i-make-robots avatar Jan 10 '22 05:01 i-make-robots