mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
remove deprecations and fixed some compiler warnings
This commit is contained in:
@@ -103,6 +103,7 @@ public class DefaultAdvancedHttpResponseTest
|
||||
* @throws IOException
|
||||
*/
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testContentAsByteSourceWithFailedRequest() throws IOException
|
||||
{
|
||||
ByteArrayInputStream bais =
|
||||
|
||||
@@ -103,6 +103,7 @@ public class JsonContentTransformerTest
|
||||
*
|
||||
* @throws IOException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test(expected = ContentTransformerException.class)
|
||||
public void testUnmarshallIOException() throws IOException
|
||||
{
|
||||
|
||||
@@ -63,6 +63,7 @@ public class XmlContentTransformerTest {
|
||||
assertEquals("test", to.value);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test(expected = ContentTransformerException.class)
|
||||
public void testUnmarshallIOException() throws IOException{
|
||||
ByteSource bs = mock(ByteSource.class);
|
||||
|
||||
Reference in New Issue
Block a user