Package org.springframework.batch.core.step.skip

Examples of org.springframework.batch.core.step.skip.SkipPolicy.shouldSkip()


  public void testSkipPolicyAttribute() throws Exception {
    @SuppressWarnings("resource")
    ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(
        "org/springframework/batch/core/configuration/xml/ChunkElementSkipPolicyParserTests-context.xml");
    SkipPolicy policy = getSkipPolicy("s1", context);
    assertTrue(policy.shouldSkip(new NullPointerException(), 0));
    assertTrue(policy.shouldSkip(new ArithmeticException(), 0));
  }

  @Test
  public void testSkipPolicyElement() throws Exception {
View Full Code Here


    @SuppressWarnings("resource")
    ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(
        "org/springframework/batch/core/configuration/xml/ChunkElementSkipPolicyParserTests-context.xml");
    SkipPolicy policy = getSkipPolicy("s1", context);
    assertTrue(policy.shouldSkip(new NullPointerException(), 0));
    assertTrue(policy.shouldSkip(new ArithmeticException(), 0));
  }

  @Test
  public void testSkipPolicyElement() throws Exception {
    @SuppressWarnings("resource")
View Full Code Here

  public void testSkipPolicyElement() throws Exception {
    @SuppressWarnings("resource")
    ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(
        "org/springframework/batch/core/configuration/xml/ChunkElementSkipPolicyParserTests-context.xml");
    SkipPolicy policy = getSkipPolicy("s2", context);
    assertFalse(policy.shouldSkip(new NullPointerException(), 0));
    assertTrue(policy.shouldSkip(new ArithmeticException(), 0));
  }

  @Test
  @SuppressWarnings("resource")
View Full Code Here

    @SuppressWarnings("resource")
    ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(
        "org/springframework/batch/core/configuration/xml/ChunkElementSkipPolicyParserTests-context.xml");
    SkipPolicy policy = getSkipPolicy("s2", context);
    assertFalse(policy.shouldSkip(new NullPointerException(), 0));
    assertTrue(policy.shouldSkip(new ArithmeticException(), 0));
  }

  @Test
  @SuppressWarnings("resource")
  public void testProcessorTransactionalAttributes() throws Exception {
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.