Package org.zanata.webtrans.shared.rpc

Examples of org.zanata.webtrans.shared.rpc.RemoteLoggingAction


        when(identity.getCredentials()).thenReturn(new ZanataCredentials());
    }

    @Test
    public void testExecute() throws Exception {
        handler.execute(new RemoteLoggingAction("blah"), null);

        verify(identity).checkLoggedIn();
        verify(identity).getCredentials();
    }
View Full Code Here


    public void testExecuteWithoutLoggedIn() throws Exception {
        doThrow(new RuntimeException("not logged in")).when(identity)
                .checkLoggedIn();

        NoOpResult result =
                handler.execute(new RemoteLoggingAction("blah"), null);

        assertThat(result, Matchers.notNullValue());
    }
View Full Code Here

        assertThat(result, Matchers.notNullValue());
    }

    @Test
    public void testRollback() throws Exception {
        handler.rollback(new RemoteLoggingAction("blow"), new NoOpResult(),
                null);
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.RemoteLoggingAction

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.