@Test(expected=NullPointerException.class) public void testAddAppFiles3() throws Exception { final List<File> files = new ArrayList<File>(); e.addAppFiles(null, files); }
public void addAppFiles(final String appName, final List<File> files) throws Exception { if ( appName == null ) throw new NullPointerException("app name is null"); if ( appName == "" ) throw new IllegalArgumentException("app name is empty"); if ( appFileListMap.containsKey( appName ) ) throw new IllegalArgumentException("The app file list already contains a list of files identified by the name: " + appName); if ( files == null ) throw new NullPointerException("file list is null"); appFileListMap.put(appName, new ArrayList<File>(files)); }
SessionAboutToBeSavedEvent extends AbstractCyEvent<CySessionManager> { public void addAppFiles(final String appName, final List<File> files) throws Exception { if ( appName == null ) throw new NullPointerException("app name is null"); if ( appName == "" ) throw new IllegalArgumentException("app name is empty"); if ( appFileListMap.containsKey( appName ) ) throw new IllegalArgumentException("The app file list already contains a list of files identified by the name: " + appName); if ( files == null ) throw new NullPointerException("file list is null"); appFileListMap.put(appName, new ArrayList<File>(files)); } }
SessionAboutToBeSavedEvent extends AbstractCyEvent<CySessionManager> { public void addAppFiles(final String appName, final List<File> files) throws Exception { if ( appName == null ) throw new NullPointerException("app name is null"); if ( appName == "" ) throw new IllegalArgumentException("app name is empty"); if ( appFileListMap.containsKey( appName ) ) throw new IllegalArgumentException("The app file list already contains a list of files identified by the name: " + appName); if ( files == null ) throw new NullPointerException("file list is null"); appFileListMap.put(appName, new ArrayList<File>(files)); } SessionAboutToBeSavedEvent(final CySessionManager source); }
SessionAboutToBeSavedEvent extends AbstractCyEvent<CySessionManager> { public void addAppFiles(final String appName, final List<File> files) throws Exception { if ( appName == null ) throw new NullPointerException("app name is null"); if ( appName == "" ) throw new IllegalArgumentException("app name is empty"); if ( appFileListMap.containsKey( appName ) ) throw new IllegalArgumentException("The app file list already contains a list of files identified by the name: " + appName); if ( files == null ) throw new NullPointerException("file list is null"); appFileListMap.put(appName, new ArrayList<File>(files)); } SessionAboutToBeSavedEvent(final CySessionManager source); void addAppFiles(final String appName, final List<File> files); Map<String,List<File>> getAppFileListMap(); }
SessionAboutToBeSavedEvent extends AbstractCyEvent<CySessionManager> { public void addAppFiles(final String appName, final List<File> files) throws Exception { if ( appName == null ) throw new NullPointerException("app name is null"); if ( appName == "" ) throw new IllegalArgumentException("app name is empty"); if ( appFileListMap.containsKey( appName ) ) throw new IllegalArgumentException("The app file list already contains a list of files identified by the name: " + appName); if ( files == null ) throw new NullPointerException("file list is null"); appFileListMap.put(appName, new ArrayList<File>(files)); } SessionAboutToBeSavedEvent(final CySessionManager source); void addAppFiles(final String appName, final List<File> files); Map<String,List<File>> getAppFileListMap();  }