Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package model;
- public class Foo {
- private String value;
- public Foo(String v) { this.value = v; }
- public String toString() { return this.value; }
- }
- package model;
- public class FooTest {
- @Test
- public void testToString() {
- String expected = "Test";
- Foo foo = new Foo(expected);
- Assert.assertEquals(expected, foo.toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement