コード例 #1
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * Run the void setName(String) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testSetName_1() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");
    String name = "";

    fixture.setName(name);
  }
コード例 #2
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * Run the boolean equals(Object) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testEquals_2() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");
    HDWorkload obj = new HDWorkload();
    obj.setName("");
    obj.setDescription("");

    boolean result = fixture.equals(obj);

    assertEquals(true, result);
  }
コード例 #3
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * Run the void setVariables(HDTestVariables) method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testSetVariables_1() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");
    HDTestVariables variables = new HDTestVariables();

    fixture.setVariables(variables);
  }
コード例 #4
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * Run the int hashCode() method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testHashCode_1() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");

    int result = fixture.hashCode();

    assertEquals(861102, result);
  }
コード例 #5
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * 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);
  }
コード例 #6
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * Run the HDTestVariables getVariables() method test.
   *
   * @throws Exception
   * @generatedBy CodePro at 9/10/14 9:36 AM
   */
  @Test
  public void testGetVariables_1() throws Exception {
    HDWorkload fixture = new HDWorkload();
    fixture.setVariables(new HDTestVariables());
    fixture.setName("");
    fixture.setDescription("");

    HDTestVariables result = fixture.getVariables();

    assertNotNull(result);
    assertEquals(false, result.isAllowOverride());
  }
コード例 #7
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
  /**
   * 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());
  }
コード例 #8
0
ファイル: HDWorkloadTest.java プロジェクト: atehrani/Tank
 @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);
 }