Skip to content

Commit b4cf1e3

Browse files
author
TheSnoozer
committed
fix check-style violations
1 parent 6103ba2 commit b4cf1e3

2 files changed

Lines changed: 38 additions & 21 deletions

File tree

src/test/java/pl/project13/core/GitCommitIdPluginIntegrationTest.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ public void shouldExcludeAsConfiguredProperties(boolean useNativeGit) throws Exc
124124
// then
125125

126126
// explicitly excluded
127-
assertThat( ! properties.contains("git.remote.origin.url"));
127+
assertThat(! properties.contains("git.remote.origin.url"));
128128

129129
// glob excluded
130-
assertThat( ! properties.contains("git.build.user.name"));
131-
assertThat( ! properties.contains("git.build.user.email"));
132-
assertThat( ! properties.contains("git.commit.user.name"));
133-
assertThat( ! properties.contains("git.commit.user.email"));
130+
assertThat(! properties.contains("git.build.user.name"));
131+
assertThat(! properties.contains("git.build.user.email"));
132+
assertThat(! properties.contains("git.commit.user.name"));
133+
assertThat(! properties.contains("git.commit.user.email"));
134134

135135
// these stay
136136
assertThat(properties.contains("git.branch"));
@@ -169,11 +169,11 @@ public void shouldIncludeOnlyAsConfiguredProperties(boolean useNativeGit) throws
169169
assertThat(properties.contains("git.commit.user.email"));
170170

171171
// these excluded
172-
assertThat( ! properties.contains("git.branch"));
173-
assertThat( ! properties.contains("git.commit.id.abbrev"));
174-
assertThat( ! properties.contains("git.commit.message.full"));
175-
assertThat( ! properties.contains("git.commit.message.short"));
176-
assertThat( ! properties.contains("git.commit.time"));
172+
assertThat(! properties.contains("git.branch"));
173+
assertThat(! properties.contains("git.commit.id.abbrev"));
174+
assertThat(! properties.contains("git.commit.message.full"));
175+
assertThat(! properties.contains("git.commit.message.short"));
176+
assertThat(! properties.contains("git.commit.time"));
177177
}
178178

179179
@Test
@@ -200,20 +200,20 @@ public void shouldExcludeAndIncludeAsConfiguredProperties(boolean useNativeGit)
200200
assertThat(properties.contains("git.remote.origin.url"));
201201

202202
// explicitly excluded -> overrules include only properties
203-
assertThat( ! properties.contains("git.build.user.email"));
203+
assertThat(! properties.contains("git.build.user.email"));
204204

205205
// glob included
206206
assertThat(properties.contains("git.build.user.name"));
207207
assertThat(properties.contains("git.commit.user.name"));
208208
assertThat(properties.contains("git.commit.user.email"));
209209

210210
// these excluded
211-
assertThat( ! properties.contains("git.branch"));
212-
assertThat( ! properties.contains("git.commit.id.full"));
213-
assertThat( ! properties.contains("git.commit.id.abbrev"));
214-
assertThat( ! properties.contains("git.commit.message.full"));
215-
assertThat( ! properties.contains("git.commit.message.short"));
216-
assertThat( ! properties.contains("git.commit.time"));
211+
assertThat(! properties.contains("git.branch"));
212+
assertThat(! properties.contains("git.commit.id.full"));
213+
assertThat(! properties.contains("git.commit.id.abbrev"));
214+
assertThat(! properties.contains("git.commit.message.full"));
215+
assertThat(! properties.contains("git.commit.message.short"));
216+
assertThat(! properties.contains("git.commit.time"));
217217
}
218218

219219
@Test
@@ -235,8 +235,8 @@ public void shouldHaveNoPrefixWhenConfiguredPrefixIsEmptyStringAsConfiguredPrope
235235

236236
// then
237237
// explicitly excluded
238-
assertThat( ! properties.contains("git.remote.origin.url"));
239-
assertThat( ! properties.contains(".remote.origin.url"));
238+
assertThat(! properties.contains("git.remote.origin.url"));
239+
assertThat(! properties.contains(".remote.origin.url"));
240240
assertThat(properties.contains("remote.origin.url"));
241241
}
242242

@@ -261,7 +261,7 @@ public void shouldSkipDescribeWhenConfiguredToDoSo(boolean useNativeGit) throws
261261
GitCommitIdPlugin.runPlugin(cb, properties);
262262

263263
// then
264-
assertThat( ! properties.contains("git.commit.id.describe"));
264+
assertThat(! properties.contains("git.commit.id.describe"));
265265
}
266266

267267
@Test
@@ -678,7 +678,7 @@ public void shouldSkipGitDescribe(boolean useNativeGit) throws Exception {
678678
GitCommitIdPlugin.runPlugin(cb, properties);
679679

680680
// then
681-
assertThat( ! properties.contains("git.commit.id.describe"));
681+
assertThat(! properties.contains("git.commit.id.describe"));
682682
}
683683

684684
@Test

src/test/java/pl/project13/core/GitCommitIdTestCallback.java

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

320
import pl.project13.core.git.GitDescribeConfig;

0 commit comments

Comments
 (0)