Skip to content

Commit 5ade4ed

Browse files
Snipxitext-teamcity
authored andcommitted
Remove unnecessary checked exceptions from test methods
Autoported commit. Original commit hash: [ffcefc4e2]
1 parent bca2cdd commit 5ade4ed

18 files changed

+3
-120
lines changed

itext.tests/itext.kernel.tests/itext/kernel/utils/TaggedPdfReaderToolTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public virtual void SetUp() {
5858
CreateOrClearDestinationFolder(destinationFolder);
5959
}
6060

61-
/// <exception cref="System.Exception"/>
6261
/// <exception cref="System.IO.IOException"/>
6362
/// <exception cref="Javax.Xml.Parsers.ParserConfigurationException"/>
6463
/// <exception cref="Org.Xml.Sax.SAXException"/>

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1AcroFormCheckTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public static void BeforeClass() {
6363
}
6464

6565
/// <exception cref="System.IO.FileNotFoundException"/>
66-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
6766
[NUnit.Framework.Test]
6867
public virtual void AcroFormCheck01() {
6968
NUnit.Framework.Assert.That(() => {
@@ -82,7 +81,6 @@ public virtual void AcroFormCheck01() {
8281
}
8382

8483
/// <exception cref="System.IO.IOException"/>
85-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
8684
/// <exception cref="System.Exception"/>
8785
[NUnit.Framework.Test]
8886
public virtual void AcroFormCheck02() {
@@ -101,7 +99,6 @@ public virtual void AcroFormCheck02() {
10199
}
102100

103101
/// <exception cref="System.IO.IOException"/>
104-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
105102
/// <exception cref="System.Exception"/>
106103
[NUnit.Framework.Test]
107104
public virtual void AcroFormCheck03() {

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1ActionCheckTest.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public class PdfA1ActionCheckTest : ExtendedITextTest {
5454
.CurrentContext.TestDirectory) + "/resources/itext/pdfa/";
5555

5656
/// <exception cref="System.IO.FileNotFoundException"/>
57-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
5857
[NUnit.Framework.Test]
5958
public virtual void ActionCheck01() {
6059
NUnit.Framework.Assert.That(() => {
@@ -73,7 +72,6 @@ public virtual void ActionCheck01() {
7372
}
7473

7574
/// <exception cref="System.IO.FileNotFoundException"/>
76-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
7775
[NUnit.Framework.Test]
7876
public virtual void ActionCheck02() {
7977
NUnit.Framework.Assert.That(() => {
@@ -92,7 +90,6 @@ public virtual void ActionCheck02() {
9290
}
9391

9492
/// <exception cref="System.IO.FileNotFoundException"/>
95-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
9693
[NUnit.Framework.Test]
9794
public virtual void ActionCheck03() {
9895
NUnit.Framework.Assert.That(() => {
@@ -111,7 +108,6 @@ public virtual void ActionCheck03() {
111108
}
112109

113110
/// <exception cref="System.IO.FileNotFoundException"/>
114-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
115111
[NUnit.Framework.Test]
116112
public virtual void ActionCheck04() {
117113
NUnit.Framework.Assert.That(() => {
@@ -130,7 +126,6 @@ public virtual void ActionCheck04() {
130126
}
131127

132128
/// <exception cref="System.IO.FileNotFoundException"/>
133-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
134129
[NUnit.Framework.Test]
135130
public virtual void ActionCheck05() {
136131
NUnit.Framework.Assert.That(() => {
@@ -149,7 +144,6 @@ public virtual void ActionCheck05() {
149144
}
150145

151146
/// <exception cref="System.IO.FileNotFoundException"/>
152-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
153147
[NUnit.Framework.Test]
154148
public virtual void ActionCheck06() {
155149
NUnit.Framework.Assert.That(() => {
@@ -168,7 +162,6 @@ public virtual void ActionCheck06() {
168162
}
169163

170164
/// <exception cref="System.IO.FileNotFoundException"/>
171-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
172165
[NUnit.Framework.Test]
173166
public virtual void ActionCheck07() {
174167
NUnit.Framework.Assert.That(() => {
@@ -187,7 +180,6 @@ public virtual void ActionCheck07() {
187180
}
188181

189182
/// <exception cref="System.IO.FileNotFoundException"/>
190-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
191183
[NUnit.Framework.Test]
192184
public virtual void ActionCheck08() {
193185
NUnit.Framework.Assert.That(() => {
@@ -207,7 +199,6 @@ public virtual void ActionCheck08() {
207199
}
208200

209201
/// <exception cref="System.IO.FileNotFoundException"/>
210-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
211202
[NUnit.Framework.Test]
212203
public virtual void ActionCheck09() {
213204
NUnit.Framework.Assert.That(() => {
@@ -224,7 +215,6 @@ public virtual void ActionCheck09() {
224215
}
225216

226217
/// <exception cref="System.IO.FileNotFoundException"/>
227-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
228218
[NUnit.Framework.Test]
229219
public virtual void ActionCheck10() {
230220
NUnit.Framework.Assert.That(() => {
@@ -243,7 +233,6 @@ public virtual void ActionCheck10() {
243233
}
244234

245235
/// <exception cref="System.IO.FileNotFoundException"/>
246-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
247236
[NUnit.Framework.Test]
248237
public virtual void ActionCheck11() {
249238
NUnit.Framework.Assert.That(() => {

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1AnnotationCheckTest.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public static void BeforeClass() {
6666
}
6767

6868
/// <exception cref="System.IO.FileNotFoundException"/>
69-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
7069
[NUnit.Framework.Test]
7170
public virtual void AnnotationCheckTest01() {
7271
NUnit.Framework.Assert.That(() => {
@@ -85,7 +84,6 @@ public virtual void AnnotationCheckTest01() {
8584
}
8685

8786
/// <exception cref="System.IO.FileNotFoundException"/>
88-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
8987
[NUnit.Framework.Test]
9088
public virtual void AnnotationCheckTest02() {
9189
NUnit.Framework.Assert.That(() => {
@@ -106,7 +104,6 @@ public virtual void AnnotationCheckTest02() {
106104
}
107105

108106
/// <exception cref="System.IO.FileNotFoundException"/>
109-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
110107
[NUnit.Framework.Test]
111108
public virtual void AnnotationCheckTest03() {
112109
NUnit.Framework.Assert.That(() => {
@@ -126,7 +123,6 @@ public virtual void AnnotationCheckTest03() {
126123
}
127124

128125
/// <exception cref="System.IO.FileNotFoundException"/>
129-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
130126
[NUnit.Framework.Test]
131127
public virtual void AnnotationCheckTest04() {
132128
NUnit.Framework.Assert.That(() => {
@@ -147,7 +143,6 @@ public virtual void AnnotationCheckTest04() {
147143
}
148144

149145
/// <exception cref="System.IO.FileNotFoundException"/>
150-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
151146
[NUnit.Framework.Test]
152147
public virtual void AnnotationCheckTest05() {
153148
NUnit.Framework.Assert.That(() => {
@@ -170,7 +165,6 @@ public virtual void AnnotationCheckTest05() {
170165
}
171166

172167
/// <exception cref="System.IO.FileNotFoundException"/>
173-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
174168
[NUnit.Framework.Test]
175169
public virtual void AnnotationCheckTest06() {
176170
NUnit.Framework.Assert.That(() => {
@@ -191,7 +185,6 @@ public virtual void AnnotationCheckTest06() {
191185
}
192186

193187
/// <exception cref="System.IO.IOException"/>
194-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
195188
/// <exception cref="System.Exception"/>
196189
[NUnit.Framework.Test]
197190
public virtual void AnnotationCheckTest07() {
@@ -211,7 +204,6 @@ public virtual void AnnotationCheckTest07() {
211204
}
212205

213206
/// <exception cref="System.IO.FileNotFoundException"/>
214-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
215207
[NUnit.Framework.Test]
216208
public virtual void AnnotationCheckTest08() {
217209
NUnit.Framework.Assert.That(() => {
@@ -233,7 +225,6 @@ public virtual void AnnotationCheckTest08() {
233225
}
234226

235227
/// <exception cref="System.IO.IOException"/>
236-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
237228
/// <exception cref="System.Exception"/>
238229
[NUnit.Framework.Test]
239230
public virtual void AnnotationCheckTest09() {

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1CanvasCheckTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public static void BeforeClass() {
6363
}
6464

6565
/// <exception cref="System.IO.IOException"/>
66-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
6766
[NUnit.Framework.Test]
6867
public virtual void CanvasCheckTest1() {
6968
NUnit.Framework.Assert.That(() => {
@@ -87,7 +86,6 @@ public virtual void CanvasCheckTest1() {
8786
}
8887

8988
/// <exception cref="System.IO.IOException"/>
90-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
9189
/// <exception cref="System.Exception"/>
9290
[NUnit.Framework.Test]
9391
public virtual void CanvasCheckTest2() {
@@ -114,7 +112,6 @@ public virtual void CanvasCheckTest2() {
114112
}
115113

116114
/// <exception cref="System.IO.IOException"/>
117-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
118115
[NUnit.Framework.Test]
119116
public virtual void CanvasCheckTest3() {
120117
NUnit.Framework.Assert.That(() => {

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1EmbeddedFilesCheckTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public class PdfA1EmbeddedFilesCheckTest : ExtendedITextTest {
5252
.CurrentContext.TestDirectory) + "/resources/itext/pdfa/";
5353

5454
/// <exception cref="System.IO.IOException"/>
55-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
5655
[NUnit.Framework.Test]
5756
public virtual void FileSpecCheckTest01() {
5857
NUnit.Framework.Assert.That(() => {
@@ -79,7 +78,6 @@ public virtual void FileSpecCheckTest01() {
7978
}
8079

8180
/// <exception cref="System.IO.IOException"/>
82-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
8381
[NUnit.Framework.Test]
8482
public virtual void FileSpecCheckTest02() {
8583
NUnit.Framework.Assert.That(() => {
@@ -101,7 +99,6 @@ public virtual void FileSpecCheckTest02() {
10199
}
102100

103101
/// <exception cref="System.IO.IOException"/>
104-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
105102
[NUnit.Framework.Test]
106103
public virtual void FileSpecCheckTest03() {
107104
NUnit.Framework.Assert.That(() => {

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1GraphicsTest.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public static void BeforeClass() {
6767
}
6868

6969
/// <exception cref="System.IO.IOException"/>
70-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
7170
[NUnit.Framework.Test]
7271
public virtual void ColorCheckTest1() {
7372
NUnit.Framework.Assert.That(() => {
@@ -95,7 +94,6 @@ public virtual void ColorCheckTest1() {
9594
}
9695

9796
/// <exception cref="System.IO.IOException"/>
98-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
9997
[NUnit.Framework.Test]
10098
public virtual void ColorCheckTest2() {
10199
NUnit.Framework.Assert.That(() => {
@@ -117,8 +115,6 @@ public virtual void ColorCheckTest2() {
117115
;
118116
}
119117

120-
/// <exception cref="System.IO.IOException"/>
121-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
122118
[NUnit.Framework.Test]
123119
public virtual void ColorCheckTest3() {
124120
NUnit.Framework.Assert.That(() => {
@@ -138,7 +134,6 @@ public virtual void ColorCheckTest3() {
138134
}
139135

140136
/// <exception cref="System.IO.IOException"/>
141-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
142137
/// <exception cref="System.Exception"/>
143138
[NUnit.Framework.Test]
144139
public virtual void ColorCheckTest4() {
@@ -161,7 +156,6 @@ public virtual void ColorCheckTest4() {
161156
}
162157

163158
/// <exception cref="System.IO.IOException"/>
164-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
165159
[NUnit.Framework.Test]
166160
public virtual void EgsCheckTest1() {
167161
NUnit.Framework.Assert.That(() => {
@@ -181,7 +175,6 @@ public virtual void EgsCheckTest1() {
181175
}
182176

183177
/// <exception cref="System.IO.IOException"/>
184-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
185178
/// <exception cref="System.Exception"/>
186179
[NUnit.Framework.Test]
187180
public virtual void EgsCheckTest2() {
@@ -201,7 +194,6 @@ public virtual void EgsCheckTest2() {
201194
}
202195

203196
/// <exception cref="System.IO.IOException"/>
204-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
205197
[NUnit.Framework.Test]
206198
public virtual void EgsCheckTest3() {
207199
NUnit.Framework.Assert.That(() => {
@@ -221,7 +213,6 @@ public virtual void EgsCheckTest3() {
221213
}
222214

223215
/// <exception cref="System.IO.IOException"/>
224-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
225216
[NUnit.Framework.Test]
226217
public virtual void EgsCheckTest4() {
227218
NUnit.Framework.Assert.That(() => {
@@ -241,7 +232,6 @@ public virtual void EgsCheckTest4() {
241232
}
242233

243234
/// <exception cref="System.IO.IOException"/>
244-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
245235
[NUnit.Framework.Test]
246236
public virtual void TransparencyCheckTest1() {
247237
NUnit.Framework.Assert.That(() => {
@@ -268,7 +258,6 @@ public virtual void TransparencyCheckTest1() {
268258
}
269259

270260
/// <exception cref="System.IO.IOException"/>
271-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
272261
[NUnit.Framework.Test]
273262
public virtual void TransparencyCheckTest2() {
274263
NUnit.Framework.Assert.That(() => {
@@ -288,7 +277,6 @@ public virtual void TransparencyCheckTest2() {
288277
}
289278

290279
/// <exception cref="System.IO.IOException"/>
291-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
292280
/// <exception cref="System.Exception"/>
293281
[NUnit.Framework.Test]
294282
public virtual void TransparencyCheckTest3() {

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA2AcroFormCheckTest.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public static void BeforeClass() {
6363
}
6464

6565
/// <exception cref="System.IO.FileNotFoundException"/>
66-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
6766
[NUnit.Framework.Test]
6867
public virtual void AcroFormCheck01() {
6968
PdfWriter writer = new PdfWriter(new ByteArrayOutputStream());
@@ -83,7 +82,6 @@ public virtual void AcroFormCheck01() {
8382
}
8483

8584
/// <exception cref="System.IO.IOException"/>
86-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
8785
/// <exception cref="System.Exception"/>
8886
[NUnit.Framework.Test]
8987
public virtual void AcroFormCheck02() {
@@ -102,7 +100,6 @@ public virtual void AcroFormCheck02() {
102100
}
103101

104102
/// <exception cref="System.IO.IOException"/>
105-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
106103
/// <exception cref="System.Exception"/>
107104
[NUnit.Framework.Test]
108105
public virtual void AcroFormCheck03() {
@@ -120,7 +117,6 @@ public virtual void AcroFormCheck03() {
120117
}
121118

122119
/// <exception cref="System.IO.FileNotFoundException"/>
123-
/// <exception cref="iText.Kernel.XMP.XMPException"/>
124120
[NUnit.Framework.Test]
125121
public virtual void AcroFormCheck04() {
126122
NUnit.Framework.Assert.That(() => {

0 commit comments

Comments
 (0)