| 1 |
/* |
| 2 |
* Created on 27/gen/2014 |
| 3 |
* Copyright 2014 by Andrea Vacondio ([email protected]). |
| 4 |
* |
| 5 |
* This file is part of the Sejda source code |
| 6 |
* |
| 7 |
* This program is free software: you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU Affero General Public License as |
| 9 |
* published by the Free Software Foundation, either version 3 of the |
| 10 |
* License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU Affero General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Affero General Public License |
| 18 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
package org.sejda.conversion; |
| 21 |
|
| 22 |
import java.io.File; |
| 23 |
import java.io.IOException; |
| 24 |
|
| 25 |
import org.apache.commons.io.FileUtils; |
| 26 |
import org.junit.Before; |
| 27 |
import org.junit.Ignore; |
| 28 |
import org.junit.Rule; |
| 29 |
import org.junit.rules.TemporaryFolder; |
| 30 |
|
| 31 |
/** |
| 32 |
* @author Andrea Vacondio |
| 33 |
* |
| 34 |
*/ |
| 35 |
@Ignore |
| 36 |
public class BaseFileSourceListParserTest { |
| 37 |
@Rule |
| 38 |
public TemporaryFolder folder = new TemporaryFolder(); |
| 39 |
|
| 40 |
File xmlFile; |
| 41 |
File csvFile; |
| 42 |
File emptyFile; |
| 43 |
|
| 44 |
@Before |
| 45 |
public void setUp() throws IOException { |
| 46 |
xmlFile = folder.newFile("merge-filelist-config.xml"); |
| 47 |
csvFile = folder.newFile("merge-list.csv"); |
| 48 |
emptyFile = folder.newFile("test.txt"); |
| 49 |
FileUtils.copyInputStreamToFile(getClass().getResourceAsStream("/merge-filelist-config.xml"), xmlFile); |
| 50 |
FileUtils.copyInputStreamToFile(getClass().getResourceAsStream("/merge-list.csv"), csvFile); |
| 51 |
} |
| 52 |
|
| 53 |
} |