mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
exposing this code to outside
This commit is contained in:
1 parent
d503cf827f
commit
2c97fe227a
2 files changed
+9
-2
No files matched your search
@@ -26,12 +26,16 @@ package hudson;
|
||||
|
||||
import org.apache.tools.ant.filters.StringInputStream;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class PluginManagerTest {
|
||||
|
||||
@Test public void parseRequestedPlugins() throws Exception {
|
||||
assertEquals("{other=2.0, stuff=1.2}", PluginManager.parseRequestedPlugins(new StringInputStream("<root><stuff plugin='stuff@1.0'><more plugin='other@2.0'><things plugin='stuff@1.2'/></more></stuff></root>")).toString());
|
||||
assertEquals("{other=2.0, stuff=1.2}", new LocalPluginManager(Util.createTempDir())
|
||||
.parseRequestedPlugins(new StringInputStream("<root><stuff plugin='stuff@1.0'><more plugin='other@2.0'><things plugin='stuff@1.2'/></more></stuff></root>")).toString());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user