1 package net.sf.uitags.js; 2 3 import java.util.List ; 4 5 import junit.framework.TestCase; 6 7 public class NamedSuitesTest extends TestCase { 8 protected void setUp() throws Exception { 9 super.setUp(); 10 } 11 12 protected void tearDown() throws Exception { 13 super.tearDown(); 14 } 15 16 public void testSuiteNamesMayBeInterspersedWithWhiteSpaces() { 17 NamedSuites suites = (NamedSuites) Suites.getInstance(" core , shift "); 18 19 List fileNames = suites.getFileNames(); 20 assertEquals("util/Object.js", fileNames.get(0)); 21 assertEquals("util/Exception.js", fileNames.get(1)); 22 assertEquals("shift/Suite.js", fileNames.get(23)); 23 assertEquals("shift/Driver.js", fileNames.get(24)); 24 } 25 } 26 | Popular Tags |