mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-15 03:59:38 +02:00
Remove DataFormProvider from extension.providers
XEP-141 Data Forms are never used as stand alone packet extension, there is no need to register the provider with the ProviderManager. This makes the parse method of DataFormProvider static.
This commit is contained in:
parent
ff977825da
commit
bf557d498b
4 changed files with 5 additions and 25 deletions
|
@ -66,11 +66,9 @@ public class DataLayoutTest {
|
|||
logger.finest(output);
|
||||
assertEquals(TEST_OUTPUT_2, output);
|
||||
|
||||
DataLayoutProvider pr = DataLayoutProvider.INSTANCE;
|
||||
|
||||
XmlPullParser parser = getParser(output);
|
||||
|
||||
layout = pr.parse(parser);
|
||||
layout = DataLayoutProvider.parse(parser);
|
||||
|
||||
assertEquals(3 , layout.getPageLayout().size());
|
||||
assertEquals("Label", layout.getLabel());
|
||||
|
@ -106,11 +104,9 @@ public class DataLayoutTest {
|
|||
logger.finest(output);
|
||||
assertEquals(TEST_OUTPUT_SPECIAL, output);
|
||||
|
||||
DataLayoutProvider pr = DataLayoutProvider.INSTANCE;
|
||||
|
||||
XmlPullParser parser = getParser(output);
|
||||
|
||||
layout = pr.parse(parser);
|
||||
layout = DataLayoutProvider.parse(parser);
|
||||
|
||||
assertEquals(5 , layout.getPageLayout().size());
|
||||
assertEquals("Label - & \u00E9 \u00E1 ", layout.getLabel());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue