You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2015/02/26 23:05:06 UTC

[jira] [Created] (USERGRID-427) Fix way properties are stored in Entity class of new REST test framework

David Johnson created USERGRID-427:
--------------------------------------

             Summary: 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 test should work:

    @Test
    public void testEntityReadWrite() {
        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"));
    }

And right now it does not.



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

Re: [jira] [Created] (USERGRID-427) Fix way properties are stored in Entity class of new REST test framework

Posted by Todd Nine <to...@gmail.com>.
What is the failure?  Is the wrong field type getting returned?  This will
directly impact USERGRID-405

On Thu, 26 Feb 2015 at 15:05 David Johnson (JIRA) <ji...@apache.org> wrote:

> David Johnson created USERGRID-427:
> --------------------------------------
>
>              Summary: 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 test should work:
>
>     @Test
>     public void testEntityReadWrite() {
>         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"));
>     }
>
> And right now it does not.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>