Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
taikuukaits committed Oct 7, 2019
2 parents bb814ed + 51b73d7 commit 3b984c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public void testBomCreatedInBlackDuck() throws Exception {
assertEquals(codeLocationNameSuffixesToCheck.size(), matches);

List<VersionBomComponentView> bomComponents = projectBomService.getComponentsForProjectVersion(projectVersionWrapper.getProjectVersionView());
Optional<VersionBomComponentView> blackDuckCommonComponent = bomComponents.stream().filter(versionBomComponentView -> "blackduck-common".equals(versionBomComponentView.getComponentName())).findFirst();
// We used to look for blackduck-common, but we adopt new versions faster than KB can pick them up
Optional<VersionBomComponentView> blackDuckCommonComponent = bomComponents.stream().filter(versionBomComponentView -> "jackson-core".equals(versionBomComponentView.getComponentName())).findFirst();
assertTrue(blackDuckCommonComponent.isPresent());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@Tag("integration")
public class SignatureScanTest extends BlackDuckIntegrationTest {
private static final long ONE_MILLION_BYTES = 1_000_000;
private static final long HALF_MILLION_BYTES = 500_000;

@Test
@ExtendWith(TempDirectory.class)
Expand Down Expand Up @@ -66,7 +66,7 @@ private void assertDirectoryStructureForOfflineScan(@TempDirectory.TempDir Path

File[] dataFiles = dataDirectory.listFiles();
assertEquals(1, dataFiles.length);
assertTrue(dataFiles[0].length() > ONE_MILLION_BYTES);
assertTrue(dataFiles[0].length() > HALF_MILLION_BYTES);
}

}

0 comments on commit 3b984c3

Please sign in to comment.