Example #1
0
  /**
   * Run the List<HDTestPlan> getPlans() method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testGetPlans_1() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");

    List<HDTestPlan> result = fixture.getPlans();

    assertNotNull(result);
    assertEquals(0, result.size());
  }
Example #2
0
 @Test(groups = TestGroups.FUNCTIONAL)
 public void test() throws Exception {
   HDWorkload workload = new HDWorkload();
   workload.setName("Test Workload");
   workload.setDescription("Desc of TestWorkload");
   List<HDTestPlan> plans = workload.getPlans();
   plans.add(getTestPlan(1, 50));
   plans.add(getTestPlan(2, 50));
   String marshall = JaxbUtil.marshall(workload);
   Assert.assertNotNull(marshall);
   System.out.println(marshall);
   HDWorkload unmarshall = JaxbUtil.unmarshall(marshall, HDWorkload.class);
   Assert.assertEquals(workload, unmarshall);
 }