Skip to content

Commit 1a12bb9

Browse files
authored
Remove TODOs (#48)
* Remove TODOs
1 parent caee992 commit 1a12bb9

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@
7979
import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
8080

8181
/**
82-
* TODO: add a way to use the plugin POM for the lookup so that the user doesn't have to provide the a:g:v:goal
83-
* as the role hint for the mojo lookup.
84-
* TODO: standardize the execution of the mojo and looking at the results, but could simply have a template method
85-
* for verifying the state of the mojo post execution
86-
* TODO: need a way to look at the state of the mojo without adding getters, this could be where we finally specify
87-
* the expressions which extract values from the mojo.
88-
* TODO: create a standard directory structure for picking up POMs to make this even easier, we really just need a testing
89-
* descriptor and make this entirely declarative!
90-
*
9182
* @author jesse
9283
*/
9384
public abstract class AbstractMojoTestCase extends PlexusTestCase {
@@ -118,12 +109,6 @@ public abstract class AbstractMojoTestCase extends PlexusTestCase {
118109

119110
private Map<String, MojoDescriptor> mojoDescriptors;
120111

121-
/*
122-
* for the harness I think we have decided against going the route of using the maven project builder.
123-
* instead I think we are going to try and make an instance of the localrespository and assign that
124-
* to either the project stub or into the mojo directly with injection...not sure yet though.
125-
*/
126-
// private MavenProjectBuilder projectBuilder;
127112
@Override
128113
protected void setUp() throws Exception {
129114
assertTrue(

maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/SilentLog.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,5 @@ public String getName() {
323323
}
324324

325325
@Override
326-
public void setThreshold(int threshold) {
327-
// TODO Auto-generated method stub
328-
329-
}
326+
public void setThreshold(int threshold) {}
330327
}

maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/resources/TestResources.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ public File getBasedir(String project) throws IOException {
8686
// static helpers
8787

8888
public static void cp(File basedir, String from, String to) throws IOException {
89-
// TODO ensure destination lastModified timestamp changes
9089
FileUtils.copyFile(new File(basedir, from), new File(basedir, to));
9190
}
9291

maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/PluginArtifactFileTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class PluginArtifactFileTest extends AbstractMojoTestCase {
2727
private static final String FS = System.getProperty("file.separator");
2828

2929
public void testArtifact() throws Exception {
30-
MojoExecution execution = newMojoExecution("parameters"); // TODO dedicated test mojo
30+
MojoExecution execution = newMojoExecution("parameters");
3131

3232
List<Artifact> artifacts =
3333
execution.getMojoDescriptor().getPluginDescriptor().getArtifacts();
@@ -40,6 +40,4 @@ public void testArtifact() throws Exception {
4040
assertEquals("0.0.1-SNAPSHOT", artifact.getBaseVersion());
4141
assertTrue(artifact.getFile().getAbsolutePath().endsWith(FS + "target" + FS + "test-classes"));
4242
}
43-
44-
// TODO find a way to automate testing of jar:file:/ test plugin URLs
4543
}

0 commit comments

Comments
 (0)