Skip to content

Instantly share code, notes, and snippets.

View woshilapin's full-sized avatar
🐇

Jean SIMARD woshilapin

🐇
View GitHub Profile
@woshilapin
woshilapin / gist:efe489856c61f044870a
Created March 5, 2015 08:00
Test of readObjectsFromFormUpdateOrCreate
/**
* Unit test for
* {@link XWikiDocument#readObjectsFromFormUpdateOrCreate(EditForm, XWikiContext)}
* .
*/
@Test
public void readObjectsFromFormUpdateOrCreate() throws Exception {
HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
Map<String, String[]> parameters = new HashMap<>();
// Testing update of values in existing object with existing properties

Keybase proof

I hereby claim:

  • I am woshilapin on github.
  • I am woshilapin (https://keybase.io/woshilapin) on keybase.
  • I have a public key whose fingerprint is 525D E4C6 1A20 C5EB 493F 6780 9722 A1D9 132C 6094

To claim this, I am signing this object: