i'm testing a metdhod that is filled with how the window is going to be like.I use assertequals but i don't know what to type in
the expected.

Recommended Answers

the value you 'expect'?
what exactly do you think assertEquals is supposed to do?

Jump to Post

All 4 Replies

the value you 'expect'?
what exactly do you think assertEquals is supposed to do?

hmm, sounds like he has a method that paints a Swing component. Not something you are going to automagically test with JUnit.

I assume he's merely trying to test the values he'll be putting in the fields.

yes I am testing it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.