Skip to content

Commit fc636fa

Browse files
authored
Merge pull request #4 from git-commit-id/project-reorg
git-commit-id/git-commit-id-maven-plugin#562: move the 'core-tests' from git-commit-id/git-commit-id-maven-plugin@34d3c12 into here
2 parents e6414c4 + 93385ba commit fc636fa

44 files changed

Lines changed: 526 additions & 153 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/.checkstyle/java.header

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
<jgit.version>5.12.0.202106070339-r</jgit.version>
3737
<junit.version>4.13.2</junit.version>
38+
<mockito.version>3.11.0</mockito.version>
39+
<assertj.version>3.19.0</assertj.version>
3840
</properties>
3941

4042
<dependencyManagement>
@@ -217,6 +219,42 @@
217219
<version>${junit.version}</version>
218220
<scope>test</scope>
219221
</dependency>
222+
<dependency>
223+
<groupId>org.codehaus.plexus</groupId>
224+
<artifactId>plexus-utils</artifactId>
225+
<version>3.3.0</version>
226+
<scope>test</scope>
227+
</dependency>
228+
<dependency>
229+
<groupId>org.codehaus.plexus</groupId>
230+
<artifactId>plexus-container-default</artifactId>
231+
<version>2.1.0</version>
232+
<scope>test</scope>
233+
</dependency>
234+
<dependency>
235+
<groupId>org.assertj</groupId>
236+
<artifactId>assertj-core</artifactId>
237+
<version>${assertj.version}</version>
238+
<scope>test</scope>
239+
</dependency>
240+
<dependency>
241+
<groupId>org.mockito</groupId>
242+
<artifactId>mockito-core</artifactId>
243+
<version>${mockito.version}</version>
244+
<scope>test</scope>
245+
</dependency>
246+
<dependency>
247+
<groupId>pl.pragmatists</groupId>
248+
<artifactId>JUnitParams</artifactId>
249+
<version>1.1.1</version>
250+
<scope>test</scope>
251+
</dependency>
252+
<dependency>
253+
<groupId>org.slf4j</groupId>
254+
<artifactId>slf4j-simple</artifactId>
255+
<version>1.7.25</version>
256+
<scope>test</scope>
257+
</dependency>
220258
</dependencies>
221259

222260
<distributionManagement>

src/main/java/pl/project13/core/AheadBehind.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/CannotReadFileException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/CommitIdGenerationMode.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/GitCommitIdExecutionException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/GitCommitPropertyConstant.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/GitDataProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/GitProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

src/main/java/pl/project13/core/JGitProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* This file is part of git-commit-id-plugin by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
2+
* This file is part of git-commit-id-plugin-core by Konrad 'ktoso' Malawski <konrad.malawski@java.pl>
33
*
4-
* git-commit-id-plugin is free software: you can redistribute it and/or modify
4+
* git-commit-id-plugin-core is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU Lesser General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* git-commit-id-plugin is distributed in the hope that it will be useful,
9+
* git-commit-id-plugin-core is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU Lesser General Public License
15-
* along with git-commit-id-plugin. If not, see <http://www.gnu.org/licenses/>.
15+
* along with git-commit-id-plugin-core. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

1818
package pl.project13.core;

0 commit comments

Comments
 (0)