Beispiel #1
0
  protected void doSetUp() throws Exception {
    super.doSetUp();

    parser = new SimpleFilenameParser();

    adapter = new DefaultMessageAdapter("hello");
    adapter.setProperty("foo", "bar");
    adapter.setProperty(FileConnector.PROPERTY_ORIGINAL_FILENAME, "originalName");
    adapter.setProperty(FileConnector.PROPERTY_FILENAME, "newName");
  }
Beispiel #2
0
 /** {@inheritDoc} */
 public void setProperty(String key, Object value) {
   adapter.setProperty(key, value);
 }