KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > java2html > javasource > test > JavaSourceTypeTest


1 package de.java2html.javasource.test;
2
3 import de.java2html.javasource.JavaSourceType;
4 import junit.framework.TestCase;
5
6 public class JavaSourceTypeTest extends TestCase {
7   public void testArrayHasSameOrderAsIDs(){
8     JavaSourceType[] types = JavaSourceType.getAll();
9     for (int i=0;i<types.length;++i){
10       assertEquals(i, types[i].getID());
11     }
12   }
13 }
14
Popular Tags