[java-metadata-aggregator] 02/02: Fix type nits in tests
Ian Young
ian at iay.org.uk
Tue May 19 16:14:24 UTC 2020
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch master
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=e2f8ad0eb4a30364a54f67b9933febe40ed439ca
commit e2f8ad0eb4a30364a54f67b9933febe40ed439ca
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Tue May 19 17:03:34 2020 +0100
Fix type nits in tests
---
.../shibboleth/metadata/dom/saml/DiscoFeedCollectionSerializerTest.java | 2 +-
.../java/net/shibboleth/metadata/pipeline/ItemIdTransformStageTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/DiscoFeedCollectionSerializerTest.java b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/DiscoFeedCollectionSerializerTest.java
index 10c3ed7..503c4b2 100644
--- a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/DiscoFeedCollectionSerializerTest.java
+++ b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/DiscoFeedCollectionSerializerTest.java
@@ -106,7 +106,7 @@ public class DiscoFeedCollectionSerializerTest extends BaseDOMTest {
* @throws IOException if there are parsing issues with the JSON file
* @throws XMLParserException if there are parsing issues with the XML file
*/
- private JsonObject checkSingle(@Nonnull final String name, @Nonnull final ItemCollectionSerializer ser)
+ private JsonObject checkSingle(@Nonnull final String name, @Nonnull final ItemCollectionSerializer<Element> ser)
throws IOException, XMLParserException {
final String output;
try (final var out = new ByteArrayOutputStream()) {
diff --git a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/pipeline/ItemIdTransformStageTest.java b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/pipeline/ItemIdTransformStageTest.java
index 317df20..ee47b0f 100644
--- a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/pipeline/ItemIdTransformStageTest.java
+++ b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/pipeline/ItemIdTransformStageTest.java
@@ -85,7 +85,7 @@ public class ItemIdTransformStageTest {
@Test
public void testMDA226() throws Exception {
- final var stage = new ItemIdTransformStage();
+ final var stage = new ItemIdTransformStage<>();
// Initial list should be empty
Assert.assertEquals(stage.getIdTransformers().size(), 0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list