Package org.springframework.batch.item

Examples of org.springframework.batch.item.WriterNotOpenException


   *
   * expected: false
   */
  @Test
  public void testSkippableSubset_fatal() {
    assertFalse(getSkippableSubsetSkipPolicy().shouldSkip(new WriterNotOpenException(""), 0));
  }
View Full Code Here


   *
   * expected: true
   */
  @Test
  public void testFatalSubset_skippable() {
    assertTrue(getFatalSubsetSkipPolicy().shouldSkip(new WriterNotOpenException(""), 0));
  }
View Full Code Here

   */
  @Override
  public void write(List<? extends T> items) throws Exception {

    if (!getOutputState().isInitialized()) {
      throw new WriterNotOpenException("Writer must be open before it can be written to");
    }

    if (logger.isDebugEnabled()) {
      logger.debug("Writing to flat file with " + items.size() + " items.");
    }
View Full Code Here

   *
   * expected: false
   */
  @Test
  public void testSkippableSubset_fatal() throws Exception {
    assertFalse(getSkippableSubsetSkipPolicy().shouldSkip(new WriterNotOpenException(""), 0));
  }
View Full Code Here

   *
   * expected: true
   */
  @Test
  public void testFatalSubsetSkippable() throws Exception {
    assertTrue(getFatalSubsetSkipPolicy().shouldSkip(new WriterNotOpenException(""), 0));
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.item.WriterNotOpenException

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.