Changeset 1697


Ignore:
Timestamp:
03/15/08 15:11:54 (6 years ago)
Author:
mosipov
Message:

NEW - #2005: Test Cases für UploadResponse have to be reworked

Location:
FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/connector/ConnectorServlet.java

    r1696 r1697  
    224224                                        Messages.INVALID_TYPE); 
    225225                else if (!UtilsFile.isValidPath(currentFolderStr)) 
    226                         ur = new UploadResponse(UploadResponse.EN_ERROR, null, null, 
    227                                         Messages.INVALID_CURRENT_FOLDER); 
     226                        ur = UploadResponse.UR_INVALID_CURRENT_FOLDER; 
    228227                else { 
    229228                        ResourceTypeHandler resourceType = ResourceTypeHandler.getDefaultResourceType(typeStr); 
     
    239238 
    240239                        if (!currentDir.exists()) 
    241                                 ur = new UploadResponse(UploadResponse.EN_ERROR, null, null, 
    242                                                 Messages.INVALID_CURRENT_FOLDER); 
     240                                ur = UploadResponse.UR_INVALID_CURRENT_FOLDER; 
    243241                        else { 
    244242                                 
  • FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/response/UploadResponse.java

    r1690 r1697  
    6464        /** Error number SECURITY ERROR */ 
    6565        public static final int EN_SECURITY_ERROR = 203; 
     66         
     67        /** UploadResponse INVALID CURRENT FOLDER */ 
     68        public static final UploadResponse UR_INVALID_CURRENT_FOLDER = new UploadResponse( 
     69                        UploadResponse.EN_ERROR, null, null, 
     70                        Messages.INVALID_CURRENT_FOLDER); 
    6671 
    6772        /** 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy