Ignore:
Timestamp:
07/25/12 13:47:47 (12 years ago)
Author:
pharms
Message:

improved code coverage for defect description class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/UsabilityDefectDescription.java

    r453 r475  
    1010import java.io.IOException; 
    1111import java.io.InputStream; 
     12import java.util.ArrayList; 
     13import java.util.List; 
    1214import java.util.Map; 
    1315 
     
    117119   */ 
    118120  //----------------------------------------------------------------------------------------------- 
     121  public String[] getDescriptionParameters() 
     122  { 
     123    List<String> parameters = new ArrayList<String>(); 
     124     
     125    for (Object fragment : mDefectDescription.getTextFragmentOrParameterFragment()) 
     126    { 
     127      if (fragment instanceof ParameterFragment) 
     128      { 
     129        parameters.add(((ParameterFragment) fragment).getParameterName()); 
     130      } 
     131    } 
     132     
     133    return parameters.toArray(new String[parameters.size()]); 
     134  } 
     135   
     136  //----------------------------------------------------------------------------------------------- 
     137  /** 
     138   *  
     139   */ 
     140  //----------------------------------------------------------------------------------------------- 
    119141  public String toString(Map<String, String> parameters) throws IllegalArgumentException 
    120142  { 
Note: See TracChangeset for help on using the changeset viewer.