package net.pdp7.v2f.core;

import junit.framework.TestCase;
import net.pdp7.v2f.core.Router.ListTableRoute;

public class RouterTest extends TestCase {

	public void testRouter() {
		ListTableRoute route = (ListTableRoute) new Router(null, null).findRoute("/table_name/");
		assertEquals("table_name", route.table);
	}

	public void testDetailRoute() {
		assertFalse(new Router(null, null).getDetailRoute("table", "funky/id").contains("funky/id"));
	}
}

@@ -229,24 +229,30 @@
 Router(null,
+ null,
  null).findR
@@ -379,24 +379,30 @@
 Router(null,
+ null,
  null).getDe

Fix broken build due to not running tests before committing :(