/* * Copyright (c) 2016 Red Hat, Inc. and/or its affiliates. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Cheng Fang - Initial API and implementation */ package org.jberet.testapps.simple; import javax.batch.runtime.BatchStatus; import org.jberet.testapps.common.AbstractIT; import org.junit.Assert; import org.junit.Test; /** * Tests using {@code arrayItemReader} and {@code mockItemWriter} in jberet-support. */ public class SimpleIT extends AbstractIT { private static final String simpleJob = "simple.xml"; @Test public void readArrayWriteToConsole() throws Exception { startJobAndWait(simpleJob); Assert.assertEquals(BatchStatus.COMPLETED, jobExecution.getBatchStatus()); } }