test_class.file: step-plans/step-plans-base-artefacts/src/test/java/step/datapool/excel/WorkbookFileTest.java
test_class.identifier: WorkbookFileTest
test_case.body: @Test
  	public void testSizeLimit() {
  		Exception ex = null;
  		try {
  			WorkbookFile workbook = new WorkbookFile(getResourceFile("Excel1.xlsx"), 1, false);
  			workbook.close();
  		} catch (Exception e) {
  			ex = e;
  		}
  		
  		Assert.assertTrue(ex!=null && "The size of the workbook 'Excel1.xlsx' exceeds the max size 1bytes.".equals(ex.getMessage()));
  	}
test_case.class_method_signature: WorkbookFileTest.testSizeLimit()
test_case.full_signature: @Test public void testSizeLimit()
test_case.identifier: testSizeLimit
test_case.invocations: getResourceFile close assertTrue equals getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSizeLimit()
focal_class.declarator: logger = LoggerFactory.getLogger(WorkbookFile.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(WorkbookFile.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: file
focal_class.modifier: private
focal_class.original_string: private File file;
focal_class.type: File
focal_class.var_name: file
focal_class.declarator: inputStream
focal_class.modifier: private
focal_class.original_string: private InputStream inputStream;
focal_class.type: InputStream
focal_class.var_name: inputStream
focal_class.declarator: outputStream
focal_class.modifier: private
focal_class.original_string: private OutputStream outputStream;
focal_class.type: OutputStream
focal_class.var_name: outputStream
focal_class.declarator: workbook
focal_class.modifier: private
focal_class.original_string: private Workbook workbook;
focal_class.type: Workbook
focal_class.var_name: workbook
focal_class.declarator: FILENAME_PATTERN = Pattern.compile("(.*)\\.(.+?)$")
focal_class.modifier: private static
focal_class.original_string: private static Pattern FILENAME_PATTERN = Pattern.compile("(.*)\\.(.+?)$");
focal_class.type: Pattern
focal_class.var_name: FILENAME_PATTERN
focal_class.declarator: DATE_FORMAT = "yyyyMMddhhmmss"
focal_class.modifier: private static
focal_class.original_string: private static String DATE_FORMAT = "yyyyMMddhhmmss";
focal_class.type: String
focal_class.var_name: DATE_FORMAT
focal_class.file: step-plans/step-plans-base-artefacts/src/main/java/step/datapool/excel/WorkbookFile.java
focal_class.identifier: WorkbookFile
focal_class.interfaces: implements AutoCloseable
focal_class.class_method_signature: WorkbookFile.WorkbookFile()
focal_class.full_signature: public  WorkbookFile()
focal_class.identifier: WorkbookFile
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  WorkbookFile()
focal_class.class_method_signature: WorkbookFile.WorkbookFile(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists)
focal_class.full_signature: public  WorkbookFile(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists)
focal_class.identifier: WorkbookFile
focal_class.modifiers: public
focal_class.parameters: (File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists)
focal_class.signature:  WorkbookFile(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists)
focal_class.class_method_signature: WorkbookFile.WorkbookFile(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.full_signature: public  WorkbookFile(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.identifier: WorkbookFile
focal_class.modifiers: public
focal_class.parameters: (File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.signature:  WorkbookFile(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.class_method_signature: WorkbookFile.create(File mainWorkbook)
focal_class.full_signature: private void create(File mainWorkbook)
focal_class.identifier: create
focal_class.modifiers: private
focal_class.parameters: (File mainWorkbook)
focal_class.return: void
focal_class.signature: void create(File mainWorkbook)
focal_class.class_method_signature: WorkbookFile.open(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.full_signature:  void open(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.identifier: open
focal_class.parameters: (File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.return: void
focal_class.signature: void open(File mainWorkbook, Integer maxWorkbookSize, boolean createIfNotExists, boolean forUpdate)
focal_class.class_method_signature: WorkbookFile.checkFileSize(File file, Integer maxWorkbookSize)
focal_class.full_signature:  void checkFileSize(File file, Integer maxWorkbookSize)
focal_class.identifier: checkFileSize
focal_class.parameters: (File file, Integer maxWorkbookSize)
focal_class.return: void
focal_class.signature: void checkFileSize(File file, Integer maxWorkbookSize)
focal_class.class_method_signature: WorkbookFile.save()
focal_class.full_signature: public void save()
focal_class.identifier: save
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void save()
focal_class.class_method_signature: WorkbookFile.closeOutputStream()
focal_class.full_signature: private void closeOutputStream()
focal_class.identifier: closeOutputStream
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeOutputStream()
focal_class.class_method_signature: WorkbookFile.closeInputStream()
focal_class.full_signature: private void closeInputStream()
focal_class.identifier: closeInputStream
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeInputStream()
focal_class.class_method_signature: WorkbookFile.createBackupFile()
focal_class.full_signature: private File createBackupFile()
focal_class.identifier: createBackupFile
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File createBackupFile()
focal_class.class_method_signature: WorkbookFile.isFileIsOpenedByAnotherProcess()
focal_class.full_signature: private boolean isFileIsOpenedByAnotherProcess()
focal_class.identifier: isFileIsOpenedByAnotherProcess
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFileIsOpenedByAnotherProcess()
focal_class.class_method_signature: WorkbookFile.openOutputStream(File file)
focal_class.full_signature: private void openOutputStream(File file)
focal_class.identifier: openOutputStream
focal_class.modifiers: private
focal_class.parameters: (File file)
focal_class.return: void
focal_class.signature: void openOutputStream(File file)
focal_class.class_method_signature: WorkbookFile.writeWorkbookToOutputStream()
focal_class.full_signature: private void writeWorkbookToOutputStream()
focal_class.identifier: writeWorkbookToOutputStream
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeWorkbookToOutputStream()
focal_class.class_method_signature: WorkbookFile.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: WorkbookFile.getWorkbook()
focal_class.full_signature: public Workbook getWorkbook()
focal_class.identifier: getWorkbook
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Workbook
focal_class.signature: Workbook getWorkbook()
focal_method.body: public void close() {
  		closeInputStream();
  		closeOutputStream();
  		
  		try {
  			if (workbook != null) {
  				workbook.close();
  			}
  		} catch (IOException e) {}
  	}
focal_method.class_method_signature: WorkbookFile.close()
focal_method.full_signature: public void close()
focal_method.identifier: close
focal_method.invocations: closeInputStream closeOutputStream close
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void close()