1 19 20 package org.netbeans.modules.apisupport.project.queries; 21 22 import org.netbeans.api.java.queries.SourceLevelQuery; 23 import org.netbeans.modules.apisupport.project.TestBase; 24 import org.openide.filesystems.FileObject; 25 26 30 public class SourceLevelQueryImplTest extends TestBase { 31 32 public SourceLevelQueryImplTest(String name) { 33 super(name); 34 } 35 36 public void testGetSourceLevel() { 37 String path = "junit/src/org/netbeans/modules/junit/JUnitSettings.java"; 38 FileObject f = nbCVSRoot().getFileObject(path); 39 assertNotNull("found " + path, f); 40 assertEquals("1.5 used for an average module", "1.5", SourceLevelQuery.getSourceLevel(f)); 41 } 42 43 } 44 | Popular Tags |