예제 #1
0
  /**
   * Run the String getName() method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testGetName_1() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");

    String result = fixture.getName();

    assertEquals("", result);
  }
예제 #2
0
 private void setFromString(String scriptXml) {
   if (StringUtils.isBlank(scriptXml)) {
     debuggerFrame.setCurrentWorkload(null);
     debuggerFrame.setCurrentTitle("");
   } else {
     HDWorkload workload = unmarshalWorkload(scriptXml);
     if (workload != null) {
       debuggerFrame.setCurrentWorkload(workload);
       debuggerFrame.setCurrentTitle("Workload: " + workload.getName());
     }
   }
 }