Package org.springframework.messaging.support

Examples of org.springframework.messaging.support.ErrorMessage


    this.resolver.resolveArgument(parameter, message);
  }

  @Test
  public void resolveMessageSubTypeExactMatch() throws Exception {
    ErrorMessage message = new ErrorMessage(new UnsupportedOperationException());
    MethodParameter parameter = new MethodParameter(this.method, 4);

    assertTrue("Parameter '" + parameter + "' should be supported", this.resolver.supportsParameter(parameter));
    assertSame(message, this.resolver.resolveArgument(parameter, message));
  }
View Full Code Here


    assertSame(message, this.resolver.resolveArgument(parameter, message));
  }

  @Test
  public void resolveMessageSubTypeSubClass() throws Exception {
    ErrorMessage message = new ErrorMessage(new UnsupportedOperationException());
    MethodParameter parameter = new MethodParameter(this.method, 0);

    assertTrue("Parameter '" + parameter + "' should be supported", this.resolver.supportsParameter(parameter));
    assertSame(message, this.resolver.resolveArgument(parameter, message));
  }
View Full Code Here

TOP

Related Classes of org.springframework.messaging.support.ErrorMessage

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.