Need help with developing a class for my JUnit test
Posted
by alpdog14
on Stack Overflow
See other posts from Stack Overflow
or by alpdog14
Published on 2010-03-15T04:04:01Z
Indexed on
2010/03/15
4:09 UTC
Read the original article
Hit count: 261
I have this JUnit test that I need help developing a Interface and Class for, here is the test:
Box b1 = new DefaultBox( "abc" ); Box b2 = new DefaultBox( "def" );
Box b3 = new DefaultBox( "" );
assertEquals("abc", b1.contents());
assertEquals("[abc]", b1.toString());
assertTrue(b1.equals(b1)); assertFalse(b1.equals(b2));
assertFalse(b1.equals(null));
assertEquals("cba", b1.flip().contents());
assertEquals("", b3.flip().contents());
can anyone help me in developing a Default box class and a box interface to make these test pass? Any help would be most appreciated.
© Stack Overflow or respective owner