Package javax.validation.MessageInterpolator

Examples of javax.validation.MessageInterpolator.Context.unwrap()


  }

  @Test(expectedExceptions = ValidationException.class)
  public void testUnwrapToImplementationCausesValidationException() {
    Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );
    context.unwrap( MessageInterpolatorContext.class );
  }

  @Test
  public void testUnwrapToInterfaceTypesSucceeds() {
    Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );
View Full Code Here


  @Test
  public void testUnwrapToInterfaceTypesSucceeds() {
    Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );

    MessageInterpolator.Context asMessageInterpolatorContext = context.unwrap( MessageInterpolator.Context.class );
    assertSame( asMessageInterpolatorContext, context );

    HibernateMessageInterpolatorContext asHibernateMessageInterpolatorContext = context.unwrap(
        HibernateMessageInterpolatorContext.class
    );
View Full Code Here

    Context context = new MessageInterpolatorContext( null, null, null, Collections.<String, Object>emptyMap() );

    MessageInterpolator.Context asMessageInterpolatorContext = context.unwrap( MessageInterpolator.Context.class );
    assertSame( asMessageInterpolatorContext, context );

    HibernateMessageInterpolatorContext asHibernateMessageInterpolatorContext = context.unwrap(
        HibernateMessageInterpolatorContext.class
    );
    assertSame( asHibernateMessageInterpolatorContext, context );

    Object asObject = context.unwrap( Object.class );
View Full Code Here

    HibernateMessageInterpolatorContext asHibernateMessageInterpolatorContext = context.unwrap(
        HibernateMessageInterpolatorContext.class
    );
    assertSame( asHibernateMessageInterpolatorContext, context );

    Object asObject = context.unwrap( Object.class );
    assertSame( asObject, context );
  }

  @Test
  public void testGetRootBeanType() {
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.