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" description = "Gradle 5 root project"
allprojects { allprojects {
apply plugin :"java" apply plugin :"java"
// apply plugin :"nebula.lint" apply plugin :"nebula.lint"
// gradleLint { gradleLint {
// rules=['unused-dependency'] rules=['unused-dependency']
// reportFormat = 'text' reportFormat = 'text'
// } }
group = "com.baeldung" group = "com.baeldung"
version = "0.0.1" version = "0.0.1"
sourceCompatibility = "1.8" sourceCompatibility = "1.8"

View File

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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" apply plugin: "java"
description = "Source Sets example" description = "Source Sets example"
@ -60,9 +60,8 @@ configurations {
itestRuntimeOnly.extendsFrom(testRuntimeOnly) itestRuntimeOnly.extendsFrom(testRuntimeOnly)
} }
eclipse {
// eclipse { classpath {
// classpath { plusConfigurations+=[configurations.itestCompileClasspath]
// plusConfigurations+=[configurations.itestCompileClasspath] }
// } }
// }

View File

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

View File

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