/* * Copyright (c) 2014-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.samples.wildfly.xml2json; import javax.batch.runtime.BatchStatus; import org.jberet.rest.client.BatchClient; import org.jberet.samples.wildfly.common.BatchTestBase; import org.junit.Test; public final class Xml2JsonIT extends BatchTestBase { private static final String jobName = "xml2json"; /** * The full REST API URL, including scheme, hostname, port number, context path, servlet path for REST API. * For example, "http://localhost:8080/testApp/api" */ private static final String restUrl = BASE_URL + "xml2json/api"; private BatchClient batchClient = new BatchClient(restUrl); @Override protected BatchClient getBatchClient() { return batchClient; } @Test public void testCsv2Json() throws Exception { startJobCheckStatus(jobName, null, 5000, BatchStatus.COMPLETED); } }