File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/test/java/io/jenkins/plugins/conventionalcommits/utils Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -95,18 +95,14 @@ public void shouldWriteNextVersionToFile() throws Exception {
95
95
File gradleDir = rootFolder .newFolder ("SampleGradleProject" );
96
96
createBuildGradleFiles (gradleDir , buildGradleWithVersionContent );
97
97
98
- // When : write next version tp the file
98
+ // When : write next version to the file
99
99
GradleProjectType gradleProjectType = new GradleProjectType ();
100
100
gradleProjectType .writeVersion (gradleDir , Version .valueOf ("1.1.0" ), null );
101
101
102
102
// Then : the file is updated
103
- String buildGradleExpected =
104
- "foo = foo value\n " +
105
- "version = 1.1.0\n " +
106
- "bar = bar value" ;
107
103
assertThat (new String (
108
104
Files .readAllBytes (Paths .get (gradleDir .getPath () + File .separator + "gradle.properties" ))),
109
- containsString (buildGradleExpected ));
105
+ containsString ("version = 1.1.0" ));
110
106
}
111
107
112
108
@ Test (expected = IOException .class )
You can’t perform that action at this time.
0 commit comments