@Test public void translatesToJavaClasspath() { when(translator.translateTree(symbol)).thenReturn("thePomFile"); when(mavenClasspathExtractor.extractClasspathEntries( any(ExtractClasspathEntriesParameter.class))) .thenReturn(Arrays.asList("test1", "test2")); assertArrayEquals( new Object[] {"test1", "test2"}, mavenClasspathSymbolType.providePaths(translator, symbol).toArray()); }
@Test public void translatesToClasspathEntries() { when(translator.translateTree(symbol)).thenReturn("thePomFile"); when(mavenClasspathExtractor.extractClasspathEntries( any(ExtractClasspathEntriesParameter.class))) .thenReturn(Arrays.asList("test1", "test2")); assertEquals( "scope: test<br/><span class=\"meta\">classpath: test1</span><br/><span class=\"meta\">classpath: test2</span><br/>", mavenClasspathSymbolType.toTarget(translator, symbol)); }