Making more progress on the update center implementation

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9883 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-06-05 23:02:03 +00:00
1 parent 6f8eadac02
commit cb1bb66daa
9 files changed
+367 -10

No files matched your search

@@ -18,7 +18,8 @@ public class UpdateCenterTest extends TestCase {
String jsonp = IOUtils.toString(url.openStream());
String json = jsonp.substring(jsonp.indexOf('(')+1,jsonp.lastIndexOf(')'));
UpdateCenter.Data data = new UpdateCenter.Data(JSONObject.fromObject(json));
UpdateCenter uc = new UpdateCenter();
UpdateCenter.Data data = uc.new Data(JSONObject.fromObject(json));
assertTrue(data.core.url.startsWith("https://hudson.dev.java.net/"));
assertTrue(data.plugins.containsKey("rake"));
System.out.println(data.core.url);