FileBackedMessageFactory extends DefaultMessageFactory { public void setCreateTempDir(Boolean b) { this.createTempDir = b; } FileBackedMessageFactory(); String getTempDirectory(); Integer getDefaultBufferSize(); void setDefaultBufferSize(Integer bufsiz); Long getMaxMemorySizeBytes(); void setMaxMemorySizeBytes(Long l); void setTempDirectory(String tempDirectory); @Override AdaptrisMessage newMessage(); File createTempFile(Object marker); Boolean getCreateTempDir(); void setCreateTempDir(Boolean b); Boolean getExtendedLogging(); void setExtendedLogging(Boolean b); Boolean getUseNio(); void setUseNio(Boolean useNio);  }
@Test public void testSetCreateTempDir() throws Exception { FileBackedMessageFactory factory = getMessageFactory(); assertNull(factory.getCreateTempDir()); assertFalse(factory.createTempDir()); factory.setCreateTempDir(false); assertNotNull(factory.getCreateTempDir()); assertFalse(factory.createTempDir()); }