示例#1
0
  /** Test of attachPathToProject method, of class AssertionEnabler. */
  @Test
  public void testAttachPathToProject() throws Exception {
    System.out.println("attachPathToProject");

    File file = new File("src/test/resources/testFiles/");

    WsdlTestSuite suite1 = project.addNewTestSuite("suite3");

    UISupport.setToolHost(new SwingToolHost());
    XFormFactory.Factory.instance = new SwingFormFactory();

    Map<QName, WsdlInterface> bindingMap =
        (new WsdlBindingMapFactory()).createBindingMap(project, file);

    GetCommunicationParser getComParser = new GetCommunicationParser();
    GCResult result =
        getComParser.parseGetCommunications(suite1, file, "listen_uri", "mock_uri", bindingMap);

    AssertionEnabler assertionInstance = new AssertionEnabler(result);

    UISupport.setToolHost(new SwingToolHost());
    XFormFactory.Factory.instance = new SwingFormFactory();
    assertionInstance.buildDialog();

    // TODO review the generated test code and remove the default call to fail.

  }