Package org.springframework.ui

Examples of org.springframework.ui.ExtendedModelMap.containsKey()


    assertEquals("foo", request.getJobName());
    // Job, JobInstances, jobParameters, JobExecution, total, next, start,
    // end
    assertEquals(8, model.size());

    assertTrue(model.containsKey("jobExecutionInfo"));
    assertTrue(model.containsKey("jobInfo"));

    EasyMock.verify(jobService);

  }
View Full Code Here


    // Job, JobInstances, jobParameters, JobExecution, total, next, start,
    // end
    assertEquals(8, model.size());

    assertTrue(model.containsKey("jobExecutionInfo"));
    assertTrue(model.containsKey("jobInfo"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    String result = controller.detail(model, 123L, 1234L, null, null);
    // StepExecution
    assertEquals(1, model.size());
    assertEquals("jobs/executions/step", result);

    assertTrue(model.containsKey("stepExecutionInfo"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    String result = controller.history(model, 123L, 1234L, null, null);
    // StepExecution, history and progress
    assertEquals(3, model.size());
    assertEquals("jobs/executions/step/progress", result);

    assertTrue(model.containsKey("stepExecutionHistory"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    String result = controller.history(model, 123L, 1234L, null, null);
    // StepExecution, history and progress
    assertEquals(3, model.size());
    assertEquals("jobs/executions/step/progress", result);

    assertTrue(model.containsKey("stepExecutionHistory"));
    StepExecutionHistory history = (StepExecutionHistory) model.get("stepExecutionHistory");
    // The wildcard is intentional:
    assertEquals("step:partition*", history.getStepName());

    EasyMock.verify(jobService);
View Full Code Here

    String result = controller.list(model, 123L, null, null);
    // StepExecutions, JobExecution
    assertEquals(2, model.size());
    assertEquals("jobs/executions/steps", result);

    assertTrue(model.containsKey("jobExecutionInfo"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    String result = controller.stop(model, request, new BindException(request, "request"), 123L);
    // JobExecution
    assertEquals(1, model.size());
    assertEquals("jobs/execution", result);

    assertTrue(model.containsKey("jobExecutionInfo"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    String result = controller.detail(model, 123L, null, null);
    // JobExecution, StepExecutionInfos
    assertEquals(2, model.size());
    assertEquals("jobs/execution", result);

    assertTrue(model.containsKey("jobExecutionInfo"));
    assertTrue(model.containsKey("stepExecutionInfos"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    // JobExecution, StepExecutionInfos
    assertEquals(2, model.size());
    assertEquals("jobs/execution", result);

    assertTrue(model.containsKey("jobExecutionInfo"));
    assertTrue(model.containsKey("stepExecutionInfos"));

    EasyMock.verify(jobService);

  }
View Full Code Here

    String result = controller.listForJob(model, "foo", null, null, 10, 20);
    // JobExecutions, Job, total, next, previous, start, end
    assertEquals(7, model.size());
    assertEquals("jobs/executions", result);

    assertTrue(model.containsKey("jobInfo"));

    EasyMock.verify(jobService);

  }
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.