You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestHSSFSheetShiftColumns.java 4.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * ====================================================================
  3. * Licensed to the Apache Software Foundation (ASF) under one or more
  4. * contributor license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright ownership.
  6. * The ASF licenses this file to You under the Apache License, Version 2.0
  7. * (the "License"); you may not use this file except in compliance with
  8. * the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. * ====================================================================
  18. */
  19. package org.apache.poi.hssf.usermodel;
  20. import java.io.IOException;
  21. import org.apache.poi.hssf.HSSFITestDataProvider;
  22. import org.apache.poi.hssf.HSSFTestDataSamples;
  23. import org.apache.poi.ss.usermodel.BaseTestSheetShiftColumns;
  24. import org.apache.poi.ss.usermodel.Workbook;
  25. import org.junit.Ignore;
  26. import org.junit.Test;
  27. public class TestHSSFSheetShiftColumns extends BaseTestSheetShiftColumns {
  28. public TestHSSFSheetShiftColumns() {
  29. super();
  30. workbook = new HSSFWorkbook();
  31. _testDataProvider = HSSFITestDataProvider.instance;
  32. }
  33. protected Workbook openWorkbook(String spreadsheetFileName)
  34. throws IOException {
  35. return HSSFTestDataSamples.openSampleWorkbook(spreadsheetFileName);
  36. }
  37. protected Workbook getReadBackWorkbook(Workbook wb) throws IOException {
  38. return HSSFTestDataSamples.writeOutAndReadBack((HSSFWorkbook)wb);
  39. }
  40. @Override
  41. @Ignore("see <https://bz.apache.org/bugzilla/show_bug.cgi?id=62030>")
  42. @Test
  43. public void shiftMergedColumnsToMergedColumnsLeft() throws IOException {
  44. // This override is used only in order to test failing for HSSF. Please remove method after code is fixed on hssf,
  45. // so that original method from BaseTestSheetShiftColumns can be executed.
  46. }
  47. @Override
  48. @Ignore("see <https://bz.apache.org/bugzilla/show_bug.cgi?id=62030>")
  49. @Test
  50. public void shiftMergedColumnsToMergedColumnsRight() throws IOException {
  51. // This override is used only in order to test failing for HSSF. Please remove method after code is fixed on hssf,
  52. // so that original method from BaseTestSheetShiftColumns can be executed.
  53. }
  54. @Override
  55. @Ignore("see <https://bz.apache.org/bugzilla/show_bug.cgi?id=62030>")
  56. @Test
  57. public void testBug54524() throws IOException {
  58. // This override is used only in order to test failing for HSSF. Please remove method after code is fixed on hssf,
  59. // so that original method from BaseTestSheetShiftColumns can be executed.
  60. }
  61. @Override
  62. @Ignore("see <https://bz.apache.org/bugzilla/show_bug.cgi?id=62030>")
  63. @Test
  64. public void testCommentsShifting() throws IOException {
  65. // This override is used only in order to test failing for HSSF. Please remove method after code is fixed on hssf,
  66. // so that original method from BaseTestSheetShiftColumns can be executed.
  67. }
  68. @Override
  69. @Ignore("see <https://bz.apache.org/bugzilla/show_bug.cgi?id=62030>")
  70. @Test
  71. public void testShiftWithMergedRegions() throws IOException {
  72. // This override is used only in order to test failing for HSSF. Please remove method after code is fixed on hssf,
  73. // so that original method from BaseTestSheetShiftColumns can be executed.
  74. // After removing, you can re-add 'final' keyword to specification of original method.
  75. }
  76. @Override
  77. @Ignore("see <https://bz.apache.org/bugzilla/show_bug.cgi?id=62030>")
  78. @Test
  79. public void testShiftHyperlinks() throws IOException {}
  80. }