[ 
https://issues.apache.org/jira/browse/USERGRID-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339317#comment-14339317
 ] 

David Johnson commented on USERGRID-427:
----------------------------------------

I think that Entity properties bug is entirely client side, a problem in the 
test framework.

The above tests fail in the USERGRID-405 branch too.

> Fix way properties are stored in Entity class of new REST test framework
> ------------------------------------------------------------------------
>
>                 Key: USERGRID-427
>                 URL: https://issues.apache.org/jira/browse/USERGRID-427
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: David Johnson
>            Assignee: David Johnson
>
> This tests should work:
> {code}
>     @Test
>     public void testEntityPost() {
>         Entity cat = new Entity();
>         cat.put("name", "Bertha");
>         cat.put("property1", "value1");
>         Entity savedCat = this.app().collection("cats").post(cat);
>         assertEquals( cat.get("property1"), savedCat.get("property1"));
>     }
>     @Test
>     public void testEntityPostAndGet() {
>         Entity dog = new Entity();
>         dog.put("name", "Pokey");
>         dog.put("property1", "value1");
>         this.app().collection("dogs").post(dog);
>         refreshIndex();
>         Collection savedDogs = this.app().collection("dogs").get();
>         Entity savedDog = (Entity)savedDogs.iterator().next();
>         assertEquals( dog.get("property1"), savedDog.get("property1"));
>     }
> {code}
> And right now they do not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to