Esempio n. 1
0
 private BookmarkHashes get20111110Expectations() {
   BookmarkHashes result = new BookmarkHashes();
   result.m_nSetupHash = new BigInteger("-4b0706744e8452fe1ae9d5e1c28cf70fb6194795", 16);
   result.m_nInsertRandomHash = new BigInteger("25aa0fad3f4881832dcdfe658ec2efa8a1a02bc5", 16);
   result.m_nDeleteRandomHash = new BigInteger("-3ec87e810b46d734677c351ad893bbbf9ea10f55", 16);
   result.m_nLinebreakHash = new BigInteger("3ae08c284ea0d6e738cb43c0a8105e718a633550", 16);
   result.m_nOdfReloadHash = new BigInteger("3ae08c284ea0d6e738cb43c0a8105e718a633550", 16);
   // MsWord Hash is unstable over different systems
   // result.m_nMsWordReloadHash = new BigInteger("3ae08c284ea0d6e738cb43c0a8105e718a633550",16);
   return result;
 }
Esempio n. 2
0
 @Before
 public void setUpDocuments() throws Exception {
   m_xMsf =
       UnoRuntime.queryInterface(
           XMultiServiceFactory.class, connection.getComponentContext().getServiceManager());
   m_xDoc = util.WriterTools.createTextDoc(m_xMsf);
   setupBookmarks();
   actualHashes.m_nSetupHash = BookmarkHashes.getBookmarksHash(m_xDoc);
   insertRandomParts(200177);
   actualHashes.m_nInsertRandomHash = BookmarkHashes.getBookmarksHash(m_xDoc);
   deleteRandomParts(4711);
   actualHashes.m_nDeleteRandomHash = BookmarkHashes.getBookmarksHash(m_xDoc);
   insertLinebreaks(7);
   actualHashes.m_nLinebreakHash = BookmarkHashes.getBookmarksHash(m_xDoc);
   m_xOdfReloadedDoc = reloadFrom("writer8", "odf");
   actualHashes.m_nOdfReloadHash = BookmarkHashes.getBookmarksHash(m_xOdfReloadedDoc);
   // m_xMsWordReloadedDoc = reloadFrom("MS Word 97", "doc");
   // actualHashes.m_nMsWordReloadHash = BookmarkHashes.getBookmarksHash(m_xMsWordReloadedDoc);
 }