Package org.apache.isis.viewer.json.applib.user

Examples of org.apache.isis.viewer.json.applib.user.UserRepresentation


        assertThat(jsonResp.getStatus().getFamily(), is(Family.SUCCESSFUL));

        // then
        assertThat(jsonResp.getStatus(), is(HttpStatusCode.OK));

        final UserRepresentation repr = jsonResp.getEntity();
        assertThat(repr, is(not(nullValue())));
        assertThat(repr.isMap(), is(true));

        assertThat(repr.getSelf(), isLink(client).httpMethod(HttpMethod.GET));
        assertThat(repr.getUserName(), is(not(nullValue())));
        assertThat(repr.getFriendlyName(), is(nullValue())); // TODO: change
                                                             // fixture so
                                                             // populated
        assertThat(repr.getEmail(), is(nullValue())); // TODO: change fixture so
                                                      // populated
        assertThat(repr.getRoles(), is(not(nullValue()))); // TODO: change
                                                           // fixture so have
                                                           // non-empty list

        assertThat(repr.getLinks(), isArray());
        assertThat(repr.getExtensions(), isMap());
    }
View Full Code Here


    }

    @Test
    public void self_isFollowable() throws Exception {
        // given
        final UserRepresentation repr = givenRepresentation();

        // when, then
        assertThat(repr, isFollowableLinkToSelf(client));
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.json.applib.user.UserRepresentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.