Revize 27ba3ec6
Přidáno uživatelem Daniel Stuš před více než 5 roky(ů)
src/test/testJDFSpojeRecord.java | ||
---|---|---|
1 | 1 |
package test; |
2 | 2 |
|
3 |
import static org.junit.Assert.assertEquals;
|
|
4 |
|
|
3 |
import data.DataLoader;
|
|
4 |
import data.JDFSpojeRecord; |
|
5 | 5 |
import org.apache.log4j.BasicConfigurator; |
6 | 6 |
import org.apache.log4j.Level; |
7 | 7 |
import org.apache.log4j.Logger; |
8 | 8 |
import org.junit.BeforeClass; |
9 | 9 |
import org.junit.Test; |
10 | 10 |
|
11 |
import data.DataReader; |
|
12 |
import data.JDFCaskodyRecord; |
|
13 |
import data.JDFSpojeRecord; |
|
11 |
import static org.junit.Assert.assertEquals; |
|
14 | 12 |
|
15 | 13 |
public class testJDFSpojeRecord { |
16 | 14 |
|
... | ... | |
23 | 21 |
|
24 | 22 |
BasicConfigurator.configure(); |
25 | 23 |
Logger.getRootLogger().setLevel(Level.INFO); |
26 |
testRecord = DataReader.parseLine("\"445011\",\"15\",\"2\",\"8\",\"1\",\"14\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"1\";");
|
|
24 |
testRecord = DataLoader.parseLine("\"445011\",\"15\",\"2\",\"8\",\"1\",\"14\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"1\";");
|
|
27 | 25 |
} |
28 | 26 |
|
29 | 27 |
/***** |
... | ... | |
37 | 35 |
assertEquals(0,spojeRecord.getHardCode(0).compareToIgnoreCase("2")); |
38 | 36 |
assertEquals(0,spojeRecord.getHardCode(1).compareToIgnoreCase("8")); |
39 | 37 |
assertEquals(0,spojeRecord.getHardCode(2).compareToIgnoreCase("1")); |
40 |
assertEquals(0, spojeRecord.getHardCode(3).compareToIgnoreCase("14")); |
|
41 | 38 |
|
42 | 39 |
} |
43 | 40 |
|
Také k dispozici: Unified diff
Oprava implementace podle potřeb zadavatele, doplnění funkcionality pseudo linek + odstranění redundantních tříd a souborů (Re #7570)