FileSaveAll

Case

No.

Inputs

Expected Outputs

Remarks

Result

1

File -> SaveAll

  Files of type:   ptj

  FileStatus: Unsaved

  File:  Untitled.

            Untitled

   (drawing items only)

A JFileChoser menu with

To navigate to the appropriate directory.

 

Unamed files probably should produce a prompt to save each one individually first.

Null file name file values.

Doesn’t do anything

2

File -> SaveAll

   Files of type: all

   FileStatus: Unsaved

  File:  Untitled.

            Untitled

    (drawing items only)

 

 

Doesn’t do anything

3

File -> SaveAll

   Files of type: .ptj

     FileStatus: Previously

                       Saved.

  File:  SaveAll1.ptj

            SaveAll2.ptj

 

         (drawing items only)

 

Ensure that files with .ptj extension are faithfully represented after being saved without explicit file extensions with drawing objects.

Only Saving the active workspace.

 

Doesn’t update title bar.

4

File -> SaveAll

   Files of type: all

     FileStatus: Previously

                       Saved.

  File:  SaveAll1   

          SaveAll2

         (drawing items only)

 

Ensure that files with no extensions are faithfully represented after being saved with components.

 

 

Doesn’t update title bar.

 

Has no apparent effect.  Closing the files causes a ‘Do you want to save changes’ dialog.

5

File -> SaveAll

  Files of type:   ptj

  FileStatus: Unsaved

  File:  Untitled.

            Untitled

   (component items only)

A JFileChoser menu with

To navigate to the appropriate directory.

 

Unamed files probably should produce a prompt to save each one individually first.

Null file name file values.

Doesn’t do anything

6

File -> SaveAll

   Files of type: all

   FileStatus: Unsaved

  File:  Untitled.

            Untitled

    (component items only)

 

 

Doesn’t do anything

7

File -> SaveAll

   Files of type: .ptj

     FileStatus: Previously

                       Saved.

  File:  SaveAll3.ptj

            SaveAll4.ptj

 

   (component items only)

 

Ensure that files with .ptj extension are faithfully represented after being saved without explicit file extensions with drawing objects.

Only Saving the active workspace.

 

Doesn’t update title bar.

 

Components not saved

8

File -> SaveAll

   Files of type: all

     FileStatus: Previously

                       Saved.

  File:  SaveAll3   

          SaveAll4

(component items only)

 

Ensure that files with no extensions are faithfully represented after being saved with components.

 

 

Doesn’t update title bar.

 

Has no apparent effect.  Closing the files causes a ‘Do you want to save changes’ dialog.