Examples of FileWrapper


Examples of net.sourceforge.squirrel_sql.fw.util.FileWrapper

  }

  @Test (expected = IllegalArgumentException.class)
  public void testCreate_NullFileToCopy()
  {
    FileWrapper fileToCopy = null;
    FileWrapper installDir = mockHelper.createMock("installDir", FileWrapper.class);
    classUnderTest.create(fileToCopy, installDir);
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.FileWrapper

    FileWrapper installDir = mockHelper.createMock("installDir", FileWrapper.class);
    classUnderTest.create(fileToCopy, installDir);
  }
 
  public void testCreate_NullInstallDir() {
    FileWrapper fileToCopy = mockHelper.createMock("fileToCopy", FileWrapper.class);
    FileWrapper installDir = null;
    classUnderTest.create(fileToCopy, installDir);
  }
View Full Code Here

Examples of org.openengsb.core.api.model.FileWrapper

            }
            EDBObject obj = edbService.getObject((String) value, time);
            value = convertEDBObjectToUncheckedModel(parameterType, obj);
            object.remove(propertyName);
        } else if (parameterType.equals(FileWrapper.class)) {
            FileWrapper wrapper = new FileWrapper();
            String filename = object.getString(propertyName + FILEWRAPPER_FILENAME_SUFFIX);
            String content = (String) value;
            wrapper.setFilename(filename);
            wrapper.setContent(Base64.decodeBase64(content));
            value = wrapper;
            object.remove(propertyName + FILEWRAPPER_FILENAME_SUFFIX);
        } else if (parameterType.equals(File.class)) {
            return null;
        } else if (object.containsKey(propertyName)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.