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.
45 lines
1.9 KiB
45 lines
1.9 KiB
package de.superx.stat; |
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
import org.junit.Test; |
|
|
|
public class ExaminationStatistics2016Test { |
|
|
|
/* test, if field access of 'ExaminationStatistics2016' works properly - i.e. some fields may be set and some don't */ |
|
@Test |
|
public void testGetString() { |
|
ExaminationStatistics2016 testee = null; |
|
testee = new ExaminationStatistics2016(); |
|
|
|
testee.set("BERICHTSEINHEITID", "08154711"); |
|
assertEquals("Check existing field 'BERICHTSEINHEITID'","08154711",testee.getString("BERICHTSEINHEITID")); |
|
|
|
testee.set("EF1", "03"); |
|
assertEquals("Check existing field 'EF1'","03",testee.getString("EF1")); |
|
|
|
testee.set("EF10", "123"); |
|
assertEquals("Check existing field 'EF10'","123",testee.getString("EF10")); |
|
testee.set("EF11", "abcde"); |
|
assertEquals("Check existing field 'EF11'",null,testee.getString("EF11")); |
|
|
|
testee.set("EF116", "123"); |
|
assertEquals("Check existing field 'EF116'",null,testee.getString("EF116")); |
|
testee.set("EF117", "abcde"); |
|
assertEquals("Check existing field 'EF117'","abcde",testee.getString("EF117")); |
|
|
|
testee.set("EF119U2", "123"); |
|
assertEquals("Check existing field 'EF119U2'","123",testee.getString("EF119U2")); |
|
testee.set("EF120", "abcde"); |
|
assertEquals("Check existing field 'EF120'",null,testee.getString("EF120")); |
|
|
|
testee.set("EF125", "123"); |
|
assertEquals("Check existing field 'EF125'",null,testee.getString("EF125")); |
|
testee.set("EF126", "0001991"); |
|
assertEquals("Check existing field 'EF126'","0001991",testee.getString("EF126")); |
|
testee.set("EF199", "A"); |
|
assertEquals("Check existing field 'EF199'","A",testee.getString("EF199")); |
|
testee.set("EF200", "asdf"); |
|
assertEquals("Check existing field 'EF200'",null,testee.getString("EF200")); |
|
} |
|
}
|
|
|