Claudenw commented on code in PR #249:
URL: https://github.com/apache/creadur-rat/pull/249#discussion_r1600564280


##########
apache-rat-plugin/src/test/java/org/apache/rat/mp/RatCheckMojoTest.java:
##########
@@ -200,7 +200,7 @@ public void testIt5() throws Exception {
         assertNotNull(LicenseFamilySetFactory.search("YAL", 
config.getLicenseFamilies(LicenseFilter.ALL)));
         ReportConfigurationTest.validateDefaultLicenses(config, "MyLicense", 
"CpyrT", "RegxT", "SpdxT", "TextT", 
                 "Not", "All", "Any");
-        assertNotNull(LicenseSetFactory.search("MyLicense", 
config.getLicenses(LicenseFilter.ALL)));
+        assertTrue(LicenseSetFactory.search("YAL", "MyLicense", 
config.getLicenses(LicenseFilter.ALL)).isPresent());

Review Comment:
   I don't think that is the case.  Is present() is called because an Optional 
is returned.  I did a quick change but the result was a line of the same length 
and complexity.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to