Table of contents
  1. Introduction
  2. PlugletManager interface
  3. PlugletPeer interface
  4. PlugletStreamInfo interface
  5. PlugletTagInfo
  6. PlugletTagInfo2
Below the description of equivalence class partitioning of the browser side pluglet API.
This partitioning is based on: Some commom set of parameters:
<for_int> 0, (+-)MAX, some arbitrary value
<for_boolean> true, false
<for_string>null, non-null with 0 length, some arbitrary string
<for_target> <for_string>, "_self", "_parent", "_top", "_blank", non-existing and existing named target
Comment: 
- for PlugletManager.getURL and especially for PlugletManager.postURL the number of 
  possible combinations of parameters is very big, so the combinations with more than 
  2 for getURL and 1 for postURL "incorrect" parameters will not be tested.
- for methods with non-void return values should be modelled situations such that expected 
  return values cover all significant classes from specified set of return values (
  for example for PlugletInstancePeer.getMode specified set of return values consist of  
  only two values indicated embedded pluglet or full-page ( not of whole set of int values)) 
- values of arguments for each test you can find in the ParamCombinations file in test dir

Interface PlugletManager
Method Arguments Values
public void getURL PlugletInstance plugletInst null, this and other instance (when method is called inside the pluglet instance)
URL url null, http, javascript, ftp, file(win32 & unix), gopher, news
String target <for_target>
PlugletStreamListener streamListener null, new listener and used
String altHost null, the same as in url, other than in url, bad string(not ip address)
URL refferer null, the url of this page - cases of http, javascript, ftp, file(although in last 3 cases there is not refferer)
boolean forceJSEnabled <for_boolean>
public void postURL PlugletInstance plugletInst null, this and other instance (when method is called inside the pluglet instance)
URL url null, http, javascript, ftp, file(win32 & unix), news, mailto
int postDataLen <for_int>, equal to actual length, less and great
byte[] postData null, 0 byte array, random array fulfiled and not, syntactically correct path + name of existing file and non-existent, also syntactically incorrect path
boolean isFile <for_boolean>
String target <for_target>
PlugletStreamListener streamListener null, new listener and used
String altHost null, the same as in url, other than in url, bad string(not ip address)
URL referrer null, the url of this page - cases of http, javascript, ftp, file(although in last 3 cases there is not refferer)
boolean forceJSEnabled <for_boolean>
int postHeadersLength <for_int>, equal to actual length, less and great
byte[] postHeaders postHeaders null, 0 byte array, correctly formed headers (fulfiled array and not) and not
public void reloadPluglets boolean reloadPages <for_boolean>
public String userAgent none none
Interface PlugletPeer
Method Arguments Values
public String getMIMEType none none
public int getMode none none
public PlugletTagInfo getTagInfo none none
public String getValue int variable <for_int>, PlugletInstancePeer.NETSCAPE_WINDOW, PlugletManager.APPCONTEXT, PlugletManager.DISPLAY
public OutputStream newStream String type <for_string>, text/html, text/plain, image/gif, application/x-java-vm, incorrectly formed
String target <for_target>
public void setWindowSize int width <for_int>
int height <for_int>
public void showStatus String message <for_string>
Interface PlugletStreamInfo
Method Arguments Values
public String getContentType none none
public int getLastModified none none
public int getLength none none
public String getURL none none
public boolean isSeekable none none
public void requestRead ByteRanges ranges null, non-null object with 0 ranges, with 1 range for each combination: <for_int> x <for_int>, with more than 1 range
Interface PlugletTagInfo
Method Arguments Values
public String getAttribute String name <for_string>, existing attribute name
public Properties getAttributes none none
Interface PlugletTagInfo2
Method Arguments Values
public String getAlignment none none
public String getAttribute String name <for_string>, existing attribute name
public Properties getAttributes none none
public int getBorderHorizSpace none none
public int getBorderVertSpace none none
public String getDocumentBase none none
public String getDocumentEncoding none none
public int getHeight none none
public String getParameter String name <for_string>, existing parameter name
public Properties getParameters none none
public String getTagText none none
public String getTagType none none
public int getUniqueID none none
public int getWidth none none