Skip to content

Commit 810df9c

Browse files
annasuszterdrewbrokke
authored andcommitted
LPD-49671 update related test cases
1 parent 0ae3718 commit 810df9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cli/src/test/java/com/liferay/blade/cli/command/InitCommandTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public void testInitCommandListPromoted() throws Exception {
347347
}
348348
}
349349

350-
String firstLine = lines.get(0);
350+
String firstLine = lines.get(1);
351351

352352
ReleaseEntry releaseEntry = ReleaseUtil.getReleaseEntry(firstLine);
353353

cli/src/test/java/com/liferay/blade/cli/command/SamplesCommandTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ public void testGetSampleWithGradleWrapperExisting() throws Exception {
236236

237237
String output = bladeTestResults.getOutput();
238238

239-
Assert.assertTrue(output, (output == null) || output.isEmpty());
239+
output = output.trim();
240+
241+
Assert.assertEquals("Checking for new releases...", output);
240242

241243
String[] samplesArgs = {"samples", "-d", _rootDir.getPath() + "/test/workspace/modules", "auth-failure"};
242244

0 commit comments

Comments
 (0)