Skip to content

Commit cdefb4d

Browse files
author
TheSnoozer
committed
drop test that has been moved to the core module
1 parent 9e65db5 commit cdefb4d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/test/java/pl/project13/maven/git/GitCommitIdMojoTest.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@
1717

1818
package pl.project13.maven.git;
1919

20-
import org.apache.maven.plugin.MojoExecutionException;
2120
import org.junit.Test;
2221
import pl.project13.core.PropertiesFileGenerator;
2322

2423
import java.io.File;
2524
import java.io.IOException;
2625

27-
import java.util.regex.Pattern;
28-
2926
import static org.assertj.core.api.Assertions.assertThat;
30-
import static org.junit.Assert.assertFalse;
31-
import static org.junit.Assert.assertTrue;
3227

3328
public class GitCommitIdMojoTest {
3429
@Test
@@ -54,19 +49,4 @@ public void testCraftPropertiesOutputFileWithFullPath() throws IOException {
5449
assertThat(result.getCanonicalPath()).isEqualTo(
5550
new File(targetDir).toPath().resolve(generateGitPropertiesFilePath).toFile().getCanonicalPath());
5651
}
57-
58-
@Test
59-
public void verifyAllowedCharactersForEvaluateOnCommit() throws MojoExecutionException {
60-
Pattern p = GitCommitIdMojo.allowedCharactersForEvaluateOnCommit;
61-
assertTrue(p.matcher("5957e419d").matches());
62-
assertTrue(p.matcher("my_tag").matches());
63-
assertTrue(p.matcher("my-tag").matches());
64-
assertTrue(p.matcher("my.tag").matches());
65-
assertTrue(p.matcher("HEAD^1").matches());
66-
assertTrue(p.matcher("feature/branch").matches());
67-
68-
assertFalse(p.matcher("; CODE INJECTION").matches());
69-
assertFalse(p.matcher("|exit").matches());
70-
assertFalse(p.matcher("&&cat /etc/passwd").matches());
71-
}
7252
}

0 commit comments

Comments
 (0)