You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
package de.superx.servlet; |
|
|
|
import java.io.File; |
|
|
|
import org.junit.BeforeClass; |
|
import org.junit.Test; |
|
import org.springframework.test.context.ContextConfiguration; |
|
|
|
import de.superx.BaseDbTest; |
|
import de.superx.TestApplicationConfigPg; |
|
import de.superx.bin.ExecuteMask; |
|
|
|
//@ContextConfiguration(classes = { TestApplicationConfigPg.class }) |
|
public class ResKettleTest extends BaseDbTest { |
|
|
|
static String outputFilename; |
|
|
|
@BeforeClass |
|
public static void setup() |
|
{ |
|
outputFilename=String.join(File.separator, "resKettleTest", "output_34040.xml"); |
|
SuperXManager.setModuleDir(String.join(File.separator, "superx", "WEB-INF", "conf", "edustore", "db", "module")); |
|
|
|
} |
|
|
|
@Test |
|
public void testResKettleStart() throws Exception { |
|
|
|
String contenttype = "text/xml"; |
|
String stylesheet = "tabelle_extract_kdsf.xsl"; |
|
String[] params = { "-tid:600000", "-out:" + outputFilename, "-user:admin", |
|
"-params:Veröffentlichungsjahr=2018&stylesheet=" + stylesheet + "&contenttype=" |
|
+ contenttype + "&Berichtsjahr=2019&MandantenID=" + MANDANTEN_ID, |
|
"-logger:" + logConfigPath, |
|
"-mandantenID:" + MANDANTEN_ID}; |
|
|
|
ExecuteMask.setMyWEBINFFilePath(SuperXManager.getWEB_INFPfad()); |
|
ExecuteMask.execute(params); |
|
} |
|
}
|
|
|