Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

void net::sf::linuxorg::pcal::engine::EngineTest::testLoadSave (  ) [inline]

Test method for load and save

Definition at line 796 of file EngineTest.java.

References net::sf::linuxorg::pcal::engine::Engine::getWorkFile(), net::sf::linuxorg::pcal::engine::Engine::loadFromFile(), net::sf::linuxorg::pcal::engine::Engine::saveToFile(), and testGetDayInfo().

                                 {
            // plain files
            try {
                  File file = File.createTempFile("LORG_TEST", ""); //$NON-NLS-1$ //$NON-NLS-2$

                  assertNull(engine.getWorkFile());

                  prepareDateRecords(); // set up the bbt and date integer records
                  prepareBBTSympthoms();              

                  engine.saveToFile(file);
                  assertEquals(engine.getWorkFile(), file);

                  engine.loadFromFile(file, null);
                  assertEquals(engine.getWorkFile(), file);

                  testDateRecords();
                  testBBTSympthoms();

                  testGetDayInfo();

                  file.deleteOnExit();

            } catch (IOException e) {
                  fail(e.getMessage());
            } catch (ParserConfigurationException e) {
                  fail(e.getMessage());
            } catch (SAXException e) {
                  fail(e.getMessage());
            } catch (PasswordRequiredException e) {
                  fail(e.getMessage());
            }
      }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index