/** Test of SaveForumPost method, of class MetadataRDFConverter. */ @Test public void testSaveForumPost() { System.out.println("* MetadataRDFConverterTest: SaveForumPost"); ForumPost oForumPostNull = null; ForumPost expResult = null; ForumPost resultNull = MetadataRDFConverter.SaveForumPost(oForumPostNull); assertEquals(expResult, resultNull); ForumPost oForumPost = new ForumPost(); oForumPost.m_sForumItemID = "3557"; oForumPost.m_oInForumThread = new ForumThread(); oForumPost.m_oInForumThread.m_sID = "3559"; oForumPost.m_oInForumThread.m_oInForum = new Forum(); oForumPost.m_oInForumThread.m_oInForum.m_sID = "3558"; oForumPost.m_sID = "3560"; oForumPost.m_dtmTime = new Date(112, 0, 16, 16, 31); oForumPost.m_sSubject = "This is a test subject for post"; oForumPost.m_sBody = "This is a test body for post"; oForumPost.m_oAuthor = new foaf_Person(); oForumPost.m_oAuthor.m_sFirstName = "Angel"; oForumPost.m_oAuthor.m_sLastName = "Blue"; oForumPost.m_oAuthor.m_sID = "*****@*****.**"; oForumPost.m_oAuthor.m_sEmail = "*****@*****.**"; oForumPost.m_sCategory = "xxxxxx"; ForumPost result = MetadataRDFConverter.SaveForumPost(oForumPost); assertNotNull(result); assertEquals(result.m_sObjectURI.isEmpty(), false); assertEquals(result.m_oInForumThread.m_oInForum.m_sObjectURI.isEmpty(), false); assertEquals(result.m_oInForumThread.m_sObjectURI.isEmpty(), false); // assertEquals(result.m_oHasAuthor.m_sObjectURI.isEmpty(), false); // assertEquals(expResult, result); //// TO-DO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }