BAEL-4516: Fixed formatting for sources
This commit is contained in:
parent
92d27d3876
commit
10c8ff7a83
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue