Catalogen

HSSFPrintSetup @Cluster 4 (assertequals, hssfprintsetup, printsetup)


ExcelUtils.java

test that we get the same value as excel and , for

1279. HSSFPrintSetup ps = sh.getPrintSetup();
1280. float[]sizePage = PrintPagesFormat.get(ps.getPaperSize());
1283. if (ps.getLandscape()) baseSizePage = sizePage[0];
1285. float scale = ps.getScale() / 100;
1286. double l = baseSizePage -(((ps.getFooterMargin()+ps.getHeaderMargin())*Factotr_MM_Inches)+50);

PageLayoutTest.java

test for parsing document with drawings to the code @ throws ioexception

88. HSSFPrintSetup printSetup = sheet0.getPrintSetup();
89. assertEquals( HSSFPrintSetup.A4_PAPERSIZE,  printSetup.getPaperSize() );
90. assertEquals( true, printSetup.getLandscape() );
91. assertEquals( 1.0 / 2.54, printSetup.getHeaderMargin(), 0.01 );
92. assertEquals( 1.0 / 2.54, printSetup.getFooterMargin(), 0.01 );

PageLayoutTest.java

test that we can read hyperlinks .

137. HSSFPrintSetup printSetup = sheet0.getPrintSetup();
138. assertEquals( HSSFPrintSetup.A4_PAPERSIZE,  printSetup.getPaperSize() );
139. assertEquals( true, printSetup.getLandscape() );
140. assertEquals( 0.5, printSetup.getHeaderMargin(), 0.01 );
141. assertEquals( 0.5, printSetup.getFooterMargin(), 0.01 );

PageLayoutTest.java

test for parsing document with drawings to the code @ throws ioexception

79. HSSFPrintSetup printSetup = sheet0.getPrintSetup();
80. assertEquals( HSSFPrintSetup.A4_PAPERSIZE,  printSetup.getPaperSize() );
81. assertEquals( true, printSetup.getLandscape() );
82. assertEquals( 0.7 / 2.54, printSetup.getHeaderMargin(), 0.01 );
83. assertEquals( 0.7 / 2.54, printSetup.getFooterMargin(), 0.01 );

PageLayoutTest.java

test that we can read hyperlinks .

146. HSSFPrintSetup printSetup = sheet0.getPrintSetup();
147. assertEquals( HSSFPrintSetup.A4_PAPERSIZE,  printSetup.getPaperSize() );
148. assertEquals( true, printSetup.getLandscape() );
149. assertEquals( 0.5, printSetup.getHeaderMargin(), 0.01 );
150. assertEquals( 0.5, printSetup.getFooterMargin(), 0.01 );