Skip to content
Permalink
Browse files

[JENKINS-12875] Fix test

  • Loading branch information
daniel-beck committed Mar 31, 2016
1 parent ed0ea63 commit 5b1642252ebd977c21832eb12cae633b3616429f
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/src/test/java/lib/form/RowSetTest.java
@@ -2,6 +2,7 @@

import com.gargoylesoftware.htmlunit.html.HtmlPage;
import hudson.model.RootAction;
import hudson.security.csrf.CrumbIssuer;
import junit.framework.Assert;
import net.sf.json.JSONObject;
import org.junit.Rule;
@@ -27,12 +28,12 @@ public void json() throws Exception {
public static class Subject implements RootAction {
public void doSubmitTest1(StaplerRequest req) throws Exception {
JSONObject json = req.getSubmittedForm();
json.remove("crumb");
json.remove(CrumbIssuer.DEFAULT_CRUMB_NAME);
System.out.println(json);

JSONObject expected = JSONObject.fromObject(
"{'a':'aaa','b':'bbb','c':{'c1':'ccc1','c2':'ccc2'},'d':{'d1':'d1','d2':'d2'}}");
Assert.assertEquals(json,expected);
Assert.assertEquals(expected, json);
}

@Override

0 comments on commit 5b16422

Please sign in to comment.
You can’t perform that action at this time.