1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package com.hazendaz.maven.makeself;
19
20 import org.apache.maven.plugin.MojoFailureException;
21 import org.apache.maven.plugin.logging.SystemStreamLog;
22 import org.junit.jupiter.api.Assertions;
23 import org.junit.jupiter.api.Test;
24
25
26
27
28 public class PortableGitTest {
29
30
31
32
33
34
35
36 @Test
37 void processGitTest() throws MojoFailureException {
38 final PortableGit portableGit = new PortableGit(new SystemStreamLog());
39 Assertions.assertEquals("git-for-windows", portableGit.getArtifactId());
40 Assertions.assertEquals("portable", portableGit.getClassifier());
41 Assertions.assertEquals("com.github.hazendaz.git", portableGit.getGroupId());
42 Assertions.assertEquals("PortableGit", portableGit.getName());
43 Assertions.assertEquals("tar.gz", portableGit.getExtension());
44 Assertions.assertNotEquals("${git.version}", portableGit.getVersion());
45 }
46
47 }