Github user acoburn commented on a diff in the pull request:
https://github.com/apache/commons-rdf/pull/27#discussion_r95862649
--- Diff: api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
---
@@ -114,8 +116,7 @@ public void name() throws Exception {
@Test
public void valueOf() throws Exception {
- assertEquals(RDFSyntax.TURTLE, RDFSyntax.valueOf("TURTLE"));
- // No need to test all of them, we'll trust Enum
+ assertEquals(RDFSyntax.TURTLE, RDFSyntax.byName("TURTLE"));
--- End diff --
`RDFSyntax::byName` returns an `Optional`. Perhaps you mean:
assertEquals(RDFSyntax.TURTLE, RDFSyntax.byName("TURTLE").get());
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]