BAEL-4516: Fixed formatting for sources

This commit is contained in:
Sorin Zamfir 2020-08-19 21:11:19 +03:00
parent 92d27d3876
commit 10c8ff7a83
5 changed files with 22 additions and 23 deletions

View File

@ -5,11 +5,11 @@ plugins{
description = "Gradle 5 root project"
allprojects {
apply plugin :"java"
// apply plugin :"nebula.lint"
// gradleLint {
// rules=['unused-dependency']
// reportFormat = 'text'
// }
apply plugin :"nebula.lint"
gradleLint {
rules=['unused-dependency']
reportFormat = 'text'
}
group = "com.baeldung"
version = "0.0.1"
sourceCompatibility = "1.8"

View File

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip

View File

@ -1,5 +1,5 @@
// apply plugin: "eclipse"
apply plugin: "eclipse"
apply plugin: "java"
description = "Source Sets example"
@ -60,9 +60,8 @@ configurations {
itestRuntimeOnly.extendsFrom(testRuntimeOnly)
}
// eclipse {
// classpath {
// plusConfigurations+=[configurations.itestCompileClasspath]
// }
// }
eclipse {
classpath {
plusConfigurations+=[configurations.itestCompileClasspath]
}
}

View File

@ -13,19 +13,19 @@ import com.google.common.collect.ImmutableList;
public class SourceSetsItest {
@Test
public void whenRunThenSuccess() {
public void whenRun_ThenSuccess() {
SourceSetsObject underTest = new SourceSetsObject("lorem", "ipsum");
assertThat(underTest.getUser(), is("lorem"));
assertThat(underTest.getPassword(), is("ipsum"));
}
@Test
public void givenImmutableListwhenRunThenSuccess() {
public void givenImmutableList_whenRun_ThenSuccess() {
List<String> someStrings = ImmutableList.of("Baeldung", "is", "cool");
assertThat(someStrings.size(), is(3));
}
}

View File

@ -10,10 +10,10 @@ import com.baeldung.main.SourceSetsObject;
public class SourceSetsTest {
@Test
public void whenRunThenSuccess() {
SourceSetsObject underTest = new SourceSetsObject("lorem","ipsum");
public void whenRun_ThenSuccess() {
SourceSetsObject underTest = new SourceSetsObject("lorem", "ipsum");
assertThat(underTest.getUser(), is("lorem"));
assertThat(underTest.getPassword(), is("ipsum"));
}