Need help with developing a class for my JUnit test
- by alpdog14
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.