Esempio n. 1
0
 /** Test of getSupportLevelID method, of class BitstreamFormat. */
 @Test
 public void testGetSupportLevelIDValid() {
   int id1 = BitstreamFormat.getSupportLevelID("UNKNOWN");
   assertThat("testGetSupportLevelIDValid 0", id1, equalTo(BitstreamFormat.UNKNOWN));
   int id2 = BitstreamFormat.getSupportLevelID("KNOWN");
   assertThat("testGetSupportLevelIDValid 1", id2, equalTo(BitstreamFormat.KNOWN));
   int id3 = BitstreamFormat.getSupportLevelID("SUPPORTED");
   assertThat("testGetSupportLevelIDValid 2", id3, equalTo(BitstreamFormat.SUPPORTED));
 }
Esempio n. 2
0
 /** Test of getSupportLevelID method, of class BitstreamFormat. */
 @Test
 public void testGetSupportLevelIDInvalid() {
   int id1 = BitstreamFormat.getSupportLevelID("IAmNotAValidSupportLevel");
   assertThat("testGetSupportLevelIDInvalid 0", id1, equalTo(-1));
 }