1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-06 02:51:11 +01:00

Bump ErrorProne to 2.5.1 and refactor Providers a bit

This also resulted in a refactoring of the Providers and parsing
Exceptions. NumberFormatException and ParseException can now be thrown
directly, the wrapping in a SmackParsingException is down at a higher
layer, i.e. in AbstractProvider.
This commit is contained in:
Florian Schmaus 2021-01-28 22:05:47 +01:00
parent 1df0763f92
commit a7b3303f3e
136 changed files with 574 additions and 551 deletions

View file

@ -88,6 +88,7 @@ public class OpenPgpElementTest extends SmackTestSuite {
assertNotNull(element.getTimestamp());
}
@SuppressWarnings("UndefinedEquals")
@Test
public void signElementProviderTest() throws Exception {
String expected =
@ -114,6 +115,7 @@ public class OpenPgpElementTest extends SmackTestSuite {
assertEquals(element.getExtensions(), parsed.getExtensions());
}
@SuppressWarnings("UndefinedEquals")
@Test
public void cryptElementProviderTest() throws Exception {
String expected =
@ -144,6 +146,7 @@ public class OpenPgpElementTest extends SmackTestSuite {
assertEquals(element.getExtensions(), parsed.getExtensions());
}
@SuppressWarnings("UndefinedEquals")
@Test
public void signcryptElementProviderTest() throws Exception {
String expected =

View file

@ -38,6 +38,7 @@ import org.jxmpp.util.XmppDateTime;
public class PubkeyElementTest extends SmackTestSuite {
@SuppressWarnings("UndefinedEquals")
@ParameterizedTest
@EnumSource(SmackTestUtil.XmlPullParserKind.class)
public void providerTest(SmackTestUtil.XmlPullParserKind parserKind)