mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-06 19:11:10 +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:
parent
1df0763f92
commit
a7b3303f3e
136 changed files with 574 additions and 551 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue