Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
i-make-robots opened this issue Dec 20, 2021 · 3 comments
Open

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

i-make-robots opened this issue Dec 20, 2021 · 3 comments

Comments

@i-make-robots
Copy link

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
Copy link
Author

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?

@scordio
Copy link
Member

scordio commented Jan 9, 2022

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

@i-make-robots
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants