mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user