FileDocCategorySizeDatePackage
TestSlideChangeNotes.javaAPI DocApache Poi 3.0.12190Mon Jan 01 18:55:40 GMT 2007org.apache.poi.hslf.model

TestSlideChangeNotes

public class TestSlideChangeNotes extends TestCase
Tests that changing a slide's idea of what notes sheet is its works right
author
Nick Burch (nick at torchbox dot com)

Fields Summary
private SlideShow
ss
Constructors Summary
public TestSlideChangeNotes()

		String dirname = System.getProperty("HSLF.testdata.path");
		String filename = dirname + "/basic_test_ppt_file.ppt";
		HSLFSlideShow hss = new HSLFSlideShow(filename);
		ss = new SlideShow(hss);
    
Methods Summary
public voidtestSetToNone()

		Slide slideOne = ss.getSlides()[0];
		SlideAtom sa = slideOne.getSlideRecord().getSlideAtom();

		slideOne.setNotes(null);

		assertEquals(0, sa.getNotesID());
    
public voidtestSetToSomething()

		Slide slideOne = ss.getSlides()[0];
		Notes notesOne = ss.getNotes()[1];
		SlideAtom sa = slideOne.getSlideRecord().getSlideAtom();

		slideOne.setNotes(notesOne);

		assertEquals(notesOne._getSheetNumber(), sa.getNotesID());