Examples of VndError


Examples of org.springframework.hateoas.VndErrors.VndError

    JAXBContext context = JAXBContext.newInstance(VndErrors.class);
    marshaller = context.createMarshaller();
    unmarshaller = context.createUnmarshaller();

    VndError error = new VndError("42", "Validation failed!", //
        new Link("http://...", "describes"), new Link("http://...", "help"));
    errors = new VndErrors(error, error, error);
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors.VndError

public class VndErrorsUnitTest {

  @Test
  public void rendersToStringCorrectly() {

    VndError error = new VndErrors.VndError("logref", "message", new Link("foo", "bar"));
    assertThat(error.toString(), is("VndError[logref: logref, message: message, links: [<foo>;rel=\"bar\"]]"));

    VndErrors errors = new VndErrors(error);
    assertThat(errors.toString(),
        is("VndErrors[VndError[logref: logref, message: message, links: [<foo>;rel=\"bar\"]]]"));
  }
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.