@@ -0,0 +1,1119 @@
+package cx.cad.nfsn.test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport cx.cad.nfsn.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class APITest %7B%0A%0A%09private API api;%0A%09%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09this.api = new API(%22user%22,%22key%22,true);%0A%09%7D%0A%0A%09@Test%0A%09public void testAPI() %7B%0A%09%09assertTrue(this.api.getClass().equals(API.class));%0A%09%7D%0A%0A%09@Test%0A%09public void testGetAccount() %7B%0A%09%09assertTrue(this.api.getAccount(%22account%22).getClass().equals(Account.class));%0A%09%7D%0A%0A%09@Test%0A%09public void testGetDatabase() %7B%0A%09%09assertTrue(this.api.getDatabase(%22database%22).getClass().equals(Database.class));%0A%09%7D%0A%0A%09@Test%0A%09public void testGetDNS() %7B%0A%09%09fail(%22Not yet implemented%22);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetEmail() %7B%0A%09%09fail(%22Not yet implemented%22);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetMember() %7B%0A%09%09fail(%22Not yet implemented%22);%0A%09%7D%0A%0A%09@Test%0A%09public void testGetSite() %7B%0A%09%09fail(%22Not yet implemented%22);%0A%09%7D%0A%0A%09@Test%0A%09public void testGenerateSalt() %7B%0A%09%09String salt = api.generateSalt();%0A%09%09assertEquals(%22Length must be 16%22, 16, salt.length());%0A%09%09assertTrue(%22Must contain only letters and numbers%22, salt.matches(%22%5Ba-zA-Z0-9%5D*%22));%0A%09%7D%0A%0A%7D%0A

add stubbed APITest...with one real passing test!