Package org.springframework.batch.admin.web.util

Examples of org.springframework.batch.admin.web.util.ResourceInfo


  private View standard;

  @Test
  public void testDefaultJsonView() throws Exception {
    List<ResourceInfo> resources = new ArrayList<ResourceInfo>();
    resources.add(new ResourceInfo("/local", RequestMethod.GET));
    resources.add(new ResourceInfo("/jobs/{jobName}.json", RequestMethod.GET, "foo"));
    model.put("resources", resources);
    model.put("baseUrl", "http://localhost:8080/springsource");
    standard.render(model, request, response);
    String content = response.getContentAsString();
    // System.err.println(content);
View Full Code Here


  private View standard;

  @Test
  public void testDefaultRssView() throws Exception {
    List<ResourceInfo> resources = new ArrayList<ResourceInfo>();
    resources.add(new ResourceInfo("/local", RequestMethod.GET));
    resources.add(new ResourceInfo("/jobs/{jobName}", RequestMethod.GET));
    model.put("resources", resources);
    standard.render(model, request, response);
    String content = response.getContentAsString();
    // System.err.println(content);
    assertTrue(content.contains("<link>"));
View Full Code Here

  private View secondary;
 
  @Test
  public void testLocalViewWithBody() throws Exception {
    List<ResourceInfo> resources = new ArrayList<ResourceInfo>();
    resources.add(new ResourceInfo("/local", RequestMethod.GET));
    resources.add(new ResourceInfo("/jobs/{jobName}", RequestMethod.GET));
    model.put("resources", resources);
    model.put("servletPath", "/batch");
    home.render(model, request, response);
    String content = response.getContentAsString();
    // System.err.println(content);
View Full Code Here

  }

  @Test
  public void testLocalViewWithSideNav() throws Exception {
    List<ResourceInfo> resources = new ArrayList<ResourceInfo>();
    resources.add(new ResourceInfo("/local", RequestMethod.GET));
    resources.add(new ResourceInfo("/jobs/{jobName}", RequestMethod.GET));
    model.put("resources", resources);
    model.put("servletPath", "/batch");
    secondary.render(model, request, response);
    String content = response.getContentAsString();
    // System.err.println(content);
View Full Code Here

TOP

Related Classes of org.springframework.batch.admin.web.util.ResourceInfo

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.