use of com.synopsys.integration.detectable.detectables.bazel.pipeline.step.IntermediateStep in project synopsys-detect by blackducksoftware.
the class IntermediateStepParseReplaceInEachLineTest method testRemoveTrailingJunk.
@Test
public void testRemoveTrailingJunk() throws IntegrationException, ExecutableFailedException {
List<String> input = Arrays.asList("org_apache_commons_commons_io//jar:jar", "com_google_guava_guava//jar:jar");
IntermediateStep intermediateStep = new IntermediateStepParseReplaceInEachLine("//.*", "");
List<String> output = intermediateStep.process(input);
assertEquals(2, output.size());
assertEquals("org_apache_commons_commons_io", output.get(0));
assertEquals("com_google_guava_guava", output.get(1));
}
Aggregations