Making tests work again. Next up will be fixing test failures. (Actually next

up will be making the tests actually test something, and then fixing that when
they break.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1050 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2010-11-08 19:44:11 +00:00
parent 2a61ecf169
commit 906f69a392
183 changed files with 79 additions and 40 deletions
@@ -26,20 +26,15 @@ import java.util.Iterator;
import java.io.IOException;
import junit.framework.Test;
import junit.framework.TestCase;
import org.junit.*;
import static org.junit.Assert.*;
import com.threerings.media.tile.TileSet;
public class XMLTileSetParserTest extends TestCase
public class XMLTileSetParserTest
{
public XMLTileSetParserTest ()
{
super(XMLTileSetParserTest.class.getName());
}
@Override
public void runTest ()
@Test
public void testRuleSets ()
{
HashMap<String, TileSet> sets = new HashMap<String, TileSet>();
@@ -56,8 +51,8 @@ public class XMLTileSetParserTest extends TestCase
// print them out
Iterator<TileSet> iter = sets.values().iterator();
while (iter.hasNext()) {
iter.next();
// System.out.println(iter.next());
// iter.next();
System.out.println(iter.next());
}
} catch (IOException ioe) {
@@ -66,17 +61,5 @@ public class XMLTileSetParserTest extends TestCase
}
}
public static Test suite ()
{
return new XMLTileSetParserTest();
}
public static void main (String[] args)
{
XMLTileSetParserTest test = new XMLTileSetParserTest();
test.runTest();
}
protected static final String TILESET_PATH =
"rsrc/media/tile/tools/xml/tilesets.xml";
protected static final String TILESET_PATH = "rsrc/media/tile/tools/xml/tilesets.xml";
}