Skip to content

Commit

Permalink
Pass a non-null mojo in the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwiddis committed Jan 17, 2022
1 parent 8a08008 commit 73d2151
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.mycila.maven.plugin.license.git;

import com.mycila.maven.plugin.license.LicenseCheckMojo;
import com.mycila.maven.plugin.license.document.Document;
import org.junit.AfterClass;
import org.junit.Assert;
Expand Down Expand Up @@ -66,7 +67,7 @@ private void assertRange(CopyrightRangeProvider provider, String path, String in
props.put(CopyrightRangeProvider.INCEPTION_YEAR_KEY, inceptionYear);

Document document = newDocument(path);
Map<String, String> actual = provider.getAdditionalProperties(null, props, document);
Map<String, String> actual = provider.getAdditionalProperties(new LicenseCheckMojo(), props, document);

HashMap<String, String> expected = new HashMap<String, String>();
expected.put(CopyrightRangeProvider.COPYRIGHT_CREATION_YEAR_KEY, copyrightStart);
Expand Down

0 comments on commit 73d2151

Please sign in to comment.