Package jp.co.nskint.uq.pd.signage.model

Examples of jp.co.nskint.uq.pd.signage.model.Manager


    public void regist() throws Exception {

        // ログインユーザが管理者の場合。
        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());
        tester.start("/editor/regist");
        assertThat(tester.getPage(), is(instanceOf(EditorPage.class)));
        assertThat(tester.getActionMethodName(), is("regist"));
        assertThat(tester.isRedirect(), is(false));
        assertThat(tester.getDestinationPath(), is("/user/regist.jsp"));
View Full Code Here


     *      java.lang.String, java.lang.String)
     */
    @Test
    public void insert() throws Exception {

        Manager manager = new Manager();
        manager.setUid(UserService.createKey("manager0"));
        Datastore.put(manager);

        // ログインユーザが代表者の場合
        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
View Full Code Here

    public void insert_error_registedUID() throws Exception {

        // ログインユーザが管理者の場合
        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        Administrator admin = new Administrator();
        admin.setUid(UserService.createKey(UID));
        admin.setName(NAME);
        Datastore.put(admin);
View Full Code Here

    @Test
    public void insert_error_input_UID() throws Exception {

        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        // UID未入力
        tester.param("uid", "");
        tester.param("name", NAME);
        tester.param("mail", MAIL);
View Full Code Here

    @Test
    public void insert_error_input_name() throws Exception {

        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        // UID未入力
        tester.param("uid", UID);
        tester.param("name", "");
        tester.param("mail", MAIL);
View Full Code Here

    @Test
    public void insert_error_input_mail() throws Exception {

        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        // メールアドレス未入力
        tester.param("uid", UID);
        tester.param("name", NAME);
        tester.param("mail", "");
View Full Code Here

    public void edit() throws Exception {

        // ログインユーザが管理者の場合。
        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        Administrator admin = new Administrator();
        admin.setUid(UserService.createKey(UID));
        admin.setName(NAME);
        Datastore.put(admin);
View Full Code Here

    public void edit_error_NotFoundUser() throws Exception {

        // ログインユーザが管理者の場合。
        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        tester.start("/editor/" + UID + "/edit");
        assertThat(tester.getPage(), is(instanceOf(EditorPage.class)));
        assertThat(tester.getActionMethodName(), is("edit"));
        assertThat(tester.isRedirect(), is(false));
View Full Code Here


        tester.param("name", NAME);
        tester.param("mail", MAIL);

        Manager manager = new Manager();
        manager.setUid(UserService.createKey("manager0"));
        manager.setRegisteredDate(new Date());
        manager.setUpdatedDate(manager.getRegisteredDate());
        Datastore.put(manager);

        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            manager);
View Full Code Here

    public void update_error_NotFoundUser() throws Exception {

        // ログインユーザが管理者の場合。
        tester.request.getSession(true).setAttribute(
            EditorPage.SESS_KEY_LOGIN_USER,
            new Manager());

        tester.start("/editor/" + UID + "/update");
        assertThat(tester.getPage(), is(instanceOf(EditorPage.class)));
        assertThat(tester.getActionMethodName(), is("update"));
        assertThat(tester.isRedirect(), is(false));
View Full Code Here

TOP

Related Classes of jp.co.nskint.uq.pd.signage.model.Manager

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.