Skip to content

Commit b7ff34d

Browse files
committed
Suppress deprecated warnings when testing deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@920126 13f79535-47bb-0310-9956-ffa450edef68
1 parent 09e43b2 commit b7ff34d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/org/apache/commons/io/IOUtilsTestCase.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public void testReaderToString()
152152
}
153153
}
154154

155+
@SuppressWarnings("deprecation") // testing deprecated method
155156
public void testStringToOutputStream()
156157
throws Exception
157158
{
@@ -183,6 +184,7 @@ public void testStringToOutputStream()
183184
deleteFile( destination );
184185
}
185186

187+
@SuppressWarnings("deprecation") // testing deprecated method
186188
public void testStringToWriter()
187189
throws Exception
188190
{
@@ -240,6 +242,7 @@ public void testInputStreamToBufferedInputStream() throws Exception {
240242
}
241243
}
242244

245+
@SuppressWarnings("deprecation") // testing deprecated method
243246
public void testStringToByteArray()
244247
throws Exception
245248
{
@@ -255,6 +258,7 @@ public void testStringToByteArray()
255258
}
256259
}
257260

261+
@SuppressWarnings("deprecation") // testing deprecated method
258262
public void testByteArrayToWriter()
259263
throws Exception
260264
{
@@ -280,6 +284,7 @@ public void testByteArrayToWriter()
280284
deleteFile( destination );
281285
}
282286

287+
@SuppressWarnings("deprecation") // testing deprecated method
283288
public void testByteArrayToString()
284289
throws Exception
285290
{
@@ -334,6 +339,7 @@ public void testStringToInputStream() throws Exception {
334339
assertEqualContent(str.getBytes("UTF-8"), bytes);
335340
}
336341

342+
@SuppressWarnings("deprecation") // testing deprecated method
337343
public void testByteArrayToOutputStream()
338344
throws Exception
339345
{

0 commit comments

Comments
 (0)