Lines Matching refs:instance

64         Annotation instance = new Annotation("testfile.tst");
65 assertEquals(instance.getRevision(1), "");
66 instance.addLine("1.0", "Author");
67 assertEquals(instance.getRevision(1), "1.0");
68 instance.addLine("1.1.0", "Author 2");
69 assertEquals(instance.getRevision(2), "1.1.0");
77 Annotation instance = new Annotation("testfile.tst");
78 assertEquals(instance.getAuthor(1), "");
79 instance.addLine("1.0", "Author");
80 assertEquals(instance.getAuthor(1), "Author");
81 instance.addLine("1.1.0", "Author 2");
82 assertEquals(instance.getAuthor(2), "Author 2");
90 Annotation instance = new Annotation("testfile.tst");
91 assertEquals(instance.size(), 0);
92 instance.addLine("1.0", "Author");
93 assertEquals(instance.size(), 1);
94 instance.addLine("1.1", "Author 2");
95 assertEquals(instance.size(), 2);
103 Annotation instance = new Annotation("testfile.tst");
104 assertEquals(instance.getWidestRevision(), 0);
105 instance.addLine("1.0", "Author");
106 assertEquals(instance.getWidestRevision(), 3);
107 instance.addLine("1.1.0", "Author 2");
108 assertEquals(instance.getWidestRevision(), 5);
116 Annotation instance = new Annotation("testfile.tst");
117 assertEquals(instance.getWidestAuthor(), 0);
118 instance.addLine("1.0", "Author");
119 assertEquals(instance.getWidestAuthor(), 6);
120 instance.addLine("1.1.0", "Author 2");
121 assertEquals(instance.getWidestAuthor(), 8);
129 Annotation instance = new Annotation("testfile.tst");
130 instance.addLine("1.0", "Author");
131 assertEquals(instance.size(), 1);
132 instance.addLine(null, null);
140 Annotation instance = new Annotation("testfile.tst");
141 assertEquals("testfile.tst", instance.getFilename());