Skip to content

Commit ab7882e

Browse files
committed
LJDiagnostic getTitle method unit test implementation
1 parent 7fd88bc commit ab7882e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package liquidjava.diagnostics;
2+
3+
import static org.junit.Assert.assertTrue;
4+
import liquidjava.diagnostics.LJDiagnostic;
5+
import org.junit.Test;
6+
7+
public class TestLJDiagnostic {
8+
@Test
9+
public void testGetTitle() {
10+
String title1 = "title";
11+
String title2 = "fake title";
12+
LJDiagnostic ljd = new LJDiagnostic(title1, null, null, null, null);
13+
14+
assertTrue(ljd.getTitle().equals(title1));
15+
assertTrue(!ljd.getTitle().equals(title2));
16+
}
17+
}

0 commit comments

Comments
 (0)