Examples of MessageException


Examples of org.openid4java.message.MessageException

    public void messageOrConsumerAuthenticationExceptionRaisesOpenIDException() throws Exception {
        ConsumerManager mgr = mock(ConsumerManager.class);
        OpenID4JavaConsumer consumer = new OpenID4JavaConsumer(mgr, new NullAxFetchListFactory());

        when(mgr.authenticate(any(DiscoveryInformation.class), anyString(), anyString()))
                .thenThrow(new MessageException("msg"), new ConsumerException("msg"));

        try {
            consumer.beginConsumption(new MockHttpServletRequest(), "", "", "");
            fail();
        } catch (OpenIDConsumerException expected) {
View Full Code Here

Examples of org.salamanca.commands.MessageException

    /**
     * execute
     */
    public void execute() throws MessageException {
        if (this.pago == null) {
            throw new MessageException(
                    "No existe el pago para anular!");
        }
        PersistenceManager pm = BrokerServer.instance().getPMF().
                                getPersistenceManager();
        pm.currentTransaction().begin();
View Full Code Here

Examples of org.sonar.process.MessageException

    this.props = props;
    masterHosts.addAll(Arrays.asList(StringUtils.split(props.value(ProcessConstants.CLUSTER_MASTER_HOST, ""), ",")));
    clusterName = props.value(ProcessConstants.CLUSTER_NAME);
    Integer port = props.valueAsInt(ProcessConstants.SEARCH_PORT);
    if (port == null) {
      throw new MessageException("Property is not set: " + ProcessConstants.SEARCH_PORT);
    }
    tcpPort = port.intValue();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.